From fa8b758d1a32f321a56983fe38b02d99a5287283 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Wed, 2 Aug 2023 00:58:34 -0700 Subject: [PATCH] Adjust gradle version --- build.gradle | 24 ++++++++---------------- gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 9 insertions(+), 17 deletions(-) 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