mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Add publishing of CLI artifact
This commit is contained in:
parent
5dee60eec6
commit
7b227c712f
|
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user