From 43a55769d83469f76184f56ebcd5212a69be572c Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 6 Mar 2023 17:06:31 +0100 Subject: [PATCH] Add publication to Gradle plugin portal --- gradle/libs.versions.toml | 3 ++- release.sh | 2 +- tools/gradle/build.gradle.kts | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 29d43633e..8475cfc85 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -71,4 +71,5 @@ version.ref = "shadow" [plugins] shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" } -intellij = { id = "org.jetbrains.intellij", version = "1.13.1" } \ No newline at end of file +intellij = { id = "org.jetbrains.intellij", version = "1.13.1" } +pluginPublish = { id = "com.gradle.plugin-publish", version = "1.1.0" } \ No newline at end of file diff --git a/release.sh b/release.sh index 27f5e96dd..862590130 100755 --- a/release.sh +++ b/release.sh @@ -36,7 +36,7 @@ function release_teavm { GRADLE+=" -Pteavm.idea.publishToken='$TEAVM_INTELLIJ_TOKEN'" $GRADLE build -x test || { echo 'Build failed' ; return 1; } - $GRADLE --max-workers 1 publish publishPlugin || { echo 'Release failed' ; return 1; } + $GRADLE --max-workers 1 publish publishPlugin publishPlugins || { echo 'Release failed' ; return 1; } return 0 } diff --git a/tools/gradle/build.gradle.kts b/tools/gradle/build.gradle.kts index f941e039e..2e7413286 100644 --- a/tools/gradle/build.gradle.kts +++ b/tools/gradle/build.gradle.kts @@ -18,6 +18,7 @@ plugins { `java-gradle-plugin` publishing `teavm-publish` + alias(libs.plugins.pluginPublish) } description = "TeaVM Gradle plugin" @@ -28,18 +29,22 @@ dependencies { } gradlePlugin { + website.set("https://teavm.org") + vcsUrl.set("https://github.com/konsoletyper/teavm") plugins { create("TeaVMPlugin") { id = "org.teavm" implementationClass = "org.teavm.gradle.TeaVMPlugin" displayName = "TeaVM application plugin" description = "Installs TeaVM compilation tasks, configurations and source sets" + tags.set(listOf("teavm", "javascript", "webassembly", "compiler", "aot-compiler")) } create("TeaVMLibraryPlugin") { id = "org.teavm.library" implementationClass = "org.teavm.gradle.TeaVMLibraryPlugin" displayName = "TeaVM library plugin" description = "Installs TeaVM DSL for consuming TeaVM libraries and running tests in a browser" + tags.set(listOf("teavm", "javascript", "webassembly", "compiler", "aot-compiler")) } } }