Updated gradle to 8.11
Some checks are pending
build-docker / build (push) Waiting to run
build / build (push) Waiting to run

This commit is contained in:
RaphiMC 2024-11-14 00:52:42 +01:00
parent ef1c32a7e7
commit b41f87d567
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94
2 changed files with 7 additions and 10 deletions

View file

@ -116,7 +116,7 @@ sourceSets {
main { main {
classTokenReplacer { classTokenReplacer {
property("\${version}", project.version) property("\${version}", project.version)
property("\${impl_version}", "git-${project.name}-${project.version}:${project.latestCommitHash()}") property("\${impl_version}", "git-${project.name}-${project.version}:${project.latestCommitHash().get()}")
} }
} }
} }
@ -224,11 +224,8 @@ downgradeJar {
} }
build.finalizedBy("downgradeJar") build.finalizedBy("downgradeJar")
String latestCommitHash() { Provider<String> latestCommitHash() {
def stdout = new ByteArrayOutputStream() return providers.exec {
exec { commandLine = ["git", "rev-parse", "--short", "HEAD"]
commandLine "git", "rev-parse", "--short", "HEAD" }.standardOutput.getAsText().map(String::trim)
standardOutput = stdout
}
return stdout.toString().trim()
} }

View file

@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26 distributionSha256Sum=57dafb5c2622c6cc08b993c85b7c06956a2f53536432a30ead46166dbca0f1e9
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME