From b0b3698698235b38a9cd87557879044c616325d0 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Fri, 7 Oct 2022 17:42:20 +0200 Subject: [PATCH] [K/N][build] Make kotlin-native.jar archive version empty Gradle base plugin sets convention to project's version that can be SNAPSHOT that brakes name of the archive --- kotlin-native/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 61058b8b247..493fcde4ef9 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -225,13 +225,14 @@ task shadowJar(type: ShadowJar) { mergeServiceFiles() destinationDirectory.set(file("$distDir/konan/lib")) archiveBaseName.set("kotlin-native") + archiveVersion.set("") + archiveClassifier.set("") // Exclude trove4j because of license agreement. exclude "*trove4j*" exclude("META-INF/versions/9/module-info.class") configurations = [project.configurations.distPack] - archiveClassifier.set(null) outputs.upToDateWhen { - archiveFile.getOrNull()?.asFile.exists() ?: false + archiveFile.getOrNull()?.asFile?.exists() ?: false } }