From 7b227c712fbe1e9a6ce1cae752d58a07dcf3b951 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 4 Apr 2023 14:44:23 +0200 Subject: [PATCH] Add publishing of CLI artifact --- tools/cli/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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