mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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"
|
||||
|
@ -45,3 +46,16 @@ tasks {
|
|||
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