Adjust gradle version

This commit is contained in:
Zontreck 2023-08-02 00:58:34 -07:00
parent d4a83ba627
commit fa8b758d1a
2 changed files with 9 additions and 17 deletions

View file

@ -10,12 +10,17 @@ plugins {
// Apply the java-library plugin for API and implementation separation. // Apply the java-library plugin for API and implementation separation.
id 'java-library' id 'java-library'
id 'idea' id 'idea'
id 'eclipse'
id 'maven-publish' id 'maven-publish'
} }
group = "dev.zontreck" group = "dev.zontreck"
archivesBaseName = "LibAC" archivesBaseName = "LibAC"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
withSourcesJar()
}
def determinePatchVersion = { def determinePatchVersion = {
// get the name of the last tag // get the name of the last tag
@ -53,23 +58,10 @@ dependencies {
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword" 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 { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
artifact sourceJar artifact sourcesJar
artifact jar artifact jar
} }
} }
@ -90,5 +82,5 @@ publishing {
compileJava.finalizedBy("sourceJar") compileJava.finalizedBy("sourceJar")
artifacts { artifacts {
archives jar archives jar
archives sourceJar archives sourcesJar
} }

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists