[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
This commit is contained in:
Pavel Punegov
2022-10-07 17:42:20 +02:00
committed by Space Team
parent fd9f542895
commit b0b3698698
+3 -2
View File
@@ -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
}
}