Fixed issues with gradle uplift and added some additional javadoc

This commit is contained in:
Ziver Koc 2025-12-17 01:27:57 +01:00
parent aad0ea81c7
commit 5f02f65ead
30 changed files with 144 additions and 92 deletions

View file

@ -7,6 +7,30 @@ plugins {
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
/*
* The MIT License (MIT)
*
* Copyright (c) 2025 Ziver Koc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
// Load custom properties
if (project.hasProperty('customProperties')) {
project.logger.info("Loading custom properties from: ${project.property('customProperties')}")
@ -47,8 +71,8 @@ dependencies {
group = 'se.koc'
version = project.hasProperty('releaseVersion') ? releaseVersion : '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 11
targetCompatibility = 11
compileJava.options.encoding = 'UTF-8'
java {
@ -56,14 +80,6 @@ java {
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
sourceSets {
main {
java {
@ -80,3 +96,7 @@ sourceSets {
}
}
}
tasks.named('sourcesJar') {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}