mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Add publication to Gradle plugin portal
This commit is contained in:
parent
d575440bb1
commit
43a55769d8
|
@ -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" }
|
||||
intellij = { id = "org.jetbrains.intellij", version = "1.13.1" }
|
||||
pluginPublish = { id = "com.gradle.plugin-publish", version = "1.1.0" }
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user