Skip to content

Commit 235820c

Browse files
authored
Replace property access by explicit findProperty access (#9805)
1 parent bb690ef commit 235820c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/java_no_deps.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ if (project.plugins.hasPlugin('com.gradleup.shadow')) {
315315
}
316316
}
317317

318-
if (project.hasProperty("removeJarVersionNumbers") && removeJarVersionNumbers) {
318+
if (project.hasProperty("removeJarVersionNumbers") && project.findProperty("removeJarVersionNumbers").asBoolean()) {
319319
tasks.withType(AbstractArchiveTask).configureEach {
320-
archiveVersion.convention(null)
320+
archiveVersion.unsetConvention()
321321
archiveVersion.set(null)
322322
}
323323
}

0 commit comments

Comments
 (0)