diff --git a/build.gradle b/build.gradle index 90c7537..83cae83 100644 --- a/build.gradle +++ b/build.gradle @@ -10,12 +10,17 @@ plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' id 'idea' + id 'eclipse' id 'maven-publish' } group = "dev.zontreck" archivesBaseName = "LibAC" -java.toolchain.languageVersion = JavaLanguageVersion.of(17) + +java { + toolchain.languageVersion = JavaLanguageVersion.of(17) + withSourcesJar() +} def determinePatchVersion = { // get the name of the last tag @@ -53,23 +58,10 @@ dependencies { def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword" -task sourceJar(type: Jar) { - from sourceSets.main.allJava - archiveClassifier = "sources" - - manifest { - attributes([ - "Specification-Title": project.name, - "Specification-Vendor": "zontreck", - "Specification-Version":"${version}" - ]) - } -} - publishing { publications { mavenJava(MavenPublication) { - artifact sourceJar + artifact sourcesJar artifact jar } } @@ -90,5 +82,5 @@ publishing { compileJava.finalizedBy("sourceJar") artifacts { archives jar - archives sourceJar + archives sourcesJar } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 42defcc..a363877 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists