Skip to content

Commit 8dbc88f

Browse files
authored
gradle: Improve compatibility with Gradle 8
1 parent f458f22 commit 8dbc88f

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

all/build.gradle

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,12 @@ tasks.named("javadoc").configure {
5252
}
5353
}
5454

55-
tasks.register("jacocoMerge", JacocoMerge) {
55+
tasks.named("jacocoTestReport").configure {
5656
dependsOn(subprojects.jacocoTestReport.dependsOn)
5757
dependsOn(project(':grpc-interop-testing').jacocoTestReport.dependsOn)
58-
mustRunAfter(subprojects.jacocoTestReport.mustRunAfter)
59-
mustRunAfter(project(':grpc-interop-testing').jacocoTestReport.mustRunAfter)
60-
destinationFile = file("${buildDir}/jacoco/test.exec")
61-
executionData = files(subprojects.jacocoTestReport.executionData)
58+
executionData.from files(subprojects.jacocoTestReport.executionData)
6259
.plus(project(':grpc-interop-testing').jacocoTestReport.executionData)
6360
.filter { f -> f.exists() }
64-
}
65-
66-
tasks.named("jacocoTestReport").configure {
67-
dependsOn(jacocoMerge)
6861
reports {
6962
xml.required = true
7063
html.required = true

authz/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ dependencies {
3232
}
3333

3434
tasks.named("jar").configure {
35-
classifier = 'original'
35+
archiveClassifier = 'original'
3636
}
3737

3838
tasks.named("shadowJar").configure {
39-
classifier = null
39+
archiveClassifier = null
4040
dependencies {
4141
exclude(dependency {true})
4242
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ subprojects {
453453
tasks.register("japicmp", me.champeau.gradle.japicmp.JapicmpTask) {
454454
dependsOn jar
455455
oldClasspath = files(baselineArtifact)
456-
newClasspath = files(jar.archivePath)
456+
newClasspath = files(jar.archiveFile)
457457
onlyBinaryIncompatibleModified = false
458458
// Be quiet about things that did not change
459459
onlyModified = true

0 commit comments

Comments
 (0)