Fix most gradle deprecation warnings (#2093)

This commit is contained in:
Jade
2025-10-16 10:22:55 +08:00
committed by GitHub
parent 115bc09f2e
commit 373ed2ff05
9 changed files with 27 additions and 30 deletions

View File

@@ -67,7 +67,7 @@ tasks.register('testHeadless', Test) {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
exceptionFormat = "full"
showStandardStreams = true
}
exclude '**/*BenchmarkTest*'

View File

@@ -45,7 +45,7 @@ model {
task copyAllOutputs(type: Copy) {
def outputsFolder = file("$project.buildDir/outputs")
destinationDir outputsFolder
destinationDir = outputsFolder
}
ext.addTaskToCopyAllOutputs = { task ->

View File

@@ -85,8 +85,8 @@ publishing {
artifact javadocJar
artifactId = "${baseArtifactId}-java"
groupId artifactGroupId
version pubVersion
groupId = artifactGroupId
version = pubVersion
}
}
@@ -97,10 +97,10 @@ publishing {
if (project.hasProperty('copyOfflineArtifacts')) {
url(localMavenURL)
} else {
url(photonMavenURL)
url = photonMavenURL
credentials {
username 'ghactions'
password System.getenv("ARTIFACTORY_API_KEY")
username = 'ghactions'
password = System.getenv("ARTIFACTORY_API_KEY")
}
}
}
@@ -112,7 +112,7 @@ test {
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
testLogging {
events "failed"
exceptionFormat "full"
exceptionFormat = "full"
showStandardStreams = true
}
forkEvery = 1