Adjust gradle version
This commit is contained in:
parent
d4a83ba627
commit
fa8b758d1a
2 changed files with 9 additions and 17 deletions
24
build.gradle
24
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
|
||||
}
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue