Add publishing of CLI artifact

This commit is contained in:
Alexey Andreev 2023-04-04 14:44:23 +02:00
parent 5dee60eec6
commit 7b227c712f

View File

@ -17,6 +17,7 @@
plugins { plugins {
`java-library` `java-library`
shadowApply shadowApply
`teavm-publish`
} }
description = "Command line tools" description = "Command line tools"
@ -45,3 +46,16 @@ tasks {
dependsOn(shadowJar) dependsOn(shadowJar)
} }
} }
teavmPublish {
artifactId = "teavm-cli"
}
components.configureEach {
if (name == "java") {
val config = configurations.getByName("shadowRuntimeElements")
(this as AdhocComponentWithVariants).withVariantsFromConfiguration(config) {
skip()
}
}
}