diff --git a/tools/cli/build.gradle.kts b/tools/cli/build.gradle.kts index 5bd72442b..2bebcfed6 100644 --- a/tools/cli/build.gradle.kts +++ b/tools/cli/build.gradle.kts @@ -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() + } + } } \ No newline at end of file