mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-02-17 11:19:48 +08:00
Add publishing of CLI artifact
This commit is contained in:
parent
5dee60eec6
commit
7b227c712f
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user