Skip to content

Commit b9fdaa0

Browse files
committed
Fix some Gradle deprecations
1 parent c36e2f0 commit b9fdaa0

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

build.gradle.kts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ mapOf("versionJacoco" to libs.versions.jacoco.get(), "versionJandex" to libs.ver
2727

2828
tasks.named<Wrapper>("wrapper") { distributionType = Wrapper.DistributionType.ALL }
2929

30-
val buildToolIntegrationGradle by
31-
tasks.registering(Exec::class) {
30+
val buildToolIntegrationGradle =
31+
tasks.register<Exec>("buildToolIntegrationGradle") {
3232
group = "Verification"
3333
description =
3434
"Checks whether bom works fine with Gradle, requires preceding publishToMavenLocal in a separate Gradle invocation"
@@ -37,8 +37,8 @@ val buildToolIntegrationGradle by
3737
commandLine("./gradlew", "jar", "-Dcel.version=${project.version}")
3838
}
3939

40-
val buildToolIntegrationMaven by
41-
tasks.registering(Exec::class) {
40+
val buildToolIntegrationMaven =
41+
tasks.register<Exec>("buildToolIntegrationMaven") {
4242
group = "Verification"
4343
description =
4444
"Checks whether bom works fine with Maven, requires preceding publishToMavenLocal in a separate Gradle invocation"
@@ -47,14 +47,15 @@ val buildToolIntegrationMaven by
4747
commandLine("./mvnw", "clean", "package", "-Dcel.version=${project.version}")
4848
}
4949

50-
val buildToolIntegrations by tasks.registering {
51-
group = "Verification"
52-
description =
53-
"Checks whether bom works fine with build tools, requires preceding publishToMavenLocal in a separate Gradle invocation"
50+
val buildToolIntegrations =
51+
tasks.register("buildToolIntegrations") {
52+
group = "Verification"
53+
description =
54+
"Checks whether bom works fine with build tools, requires preceding publishToMavenLocal in a separate Gradle invocation"
5455

55-
dependsOn(buildToolIntegrationGradle)
56-
dependsOn(buildToolIntegrationMaven)
57-
}
56+
dependsOn(buildToolIntegrationGradle)
57+
dependsOn(buildToolIntegrationMaven)
58+
}
5859

5960
publishingHelper {
6061
nessieRepoName.set("cel-java")

0 commit comments

Comments
 (0)