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 {
`java-library`
shadowApply
`teavm-publish`
}
description = "Command line tools"
@ -44,4 +45,17 @@ tasks {
assemble {
dependsOn(shadowJar)
}
}
teavmPublish {
artifactId = "teavm-cli"
}
components.configureEach {
if (name == "java") {
val config = configurations.getByName("shadowRuntimeElements")
(this as AdhocComponentWithVariants).withVariantsFromConfiguration(config) {
skip()
}
}
}