Add publication to Gradle plugin portal

This commit is contained in:
Alexey Andreev 2023-03-06 17:06:31 +01:00
parent d575440bb1
commit 43a55769d8
3 changed files with 8 additions and 2 deletions

View File

@ -72,3 +72,4 @@ version.ref = "shadow"
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
intellij = { id = "org.jetbrains.intellij", version = "1.13.1" }
pluginPublish = { id = "com.gradle.plugin-publish", version = "1.1.0" }

View File

@ -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
}

View File

@ -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"))
}
}
}