Prepare for Gradle 9 upgrade (#2985)

Refactor Gradle scripts to replace usages incompatible with Gradle 9.

PR prepared mostly with gemini-cli, with one issue (project.exec)
researched with gemini web and manually applied.

The actual upgrade to Gradle 9 will be in another PR.

Verified: none of the issues reported in build/reports/problems/problems-report.html
is related to Gradle 9.
This commit is contained in:
Weimin Yu
2026-03-20 14:15:12 +00:00
committed by GitHub
parent 301a6681f5
commit e5c0c27458
7 changed files with 61 additions and 39 deletions
+7 -5
View File
@@ -56,12 +56,14 @@ task testJar(type: Jar) {
from sourceSets.test.output
}
artifacts {
testRuntimeOnly testJar
}
configurations {
testRuntimeOnly {
testRuntimeElements {
canBeConsumed = true
canBeResolved = false
extendsFrom testRuntimeOnly
}
}
artifacts {
add('testRuntimeElements', testJar)
}