diff --git a/gradle/java_no_deps.gradle b/gradle/java_no_deps.gradle index 4128586bcb0..2cd60b53431 100644 --- a/gradle/java_no_deps.gradle +++ b/gradle/java_no_deps.gradle @@ -315,9 +315,9 @@ if (project.plugins.hasPlugin('com.gradleup.shadow')) { } } -if (project.hasProperty("removeJarVersionNumbers") && removeJarVersionNumbers) { +if (project.hasProperty("removeJarVersionNumbers") && project.findProperty("removeJarVersionNumbers").asBoolean()) { tasks.withType(AbstractArchiveTask).configureEach { - archiveVersion.convention(null) + archiveVersion.unsetConvention() archiveVersion.set(null) } }