mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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]
|
[plugins]
|
||||||
|
|
||||||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
|
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+=" -Pteavm.idea.publishToken='$TEAVM_INTELLIJ_TOKEN'"
|
||||||
|
|
||||||
$GRADLE build -x test || { echo 'Build failed' ; return 1; }
|
$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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ plugins {
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
publishing
|
publishing
|
||||||
`teavm-publish`
|
`teavm-publish`
|
||||||
|
alias(libs.plugins.pluginPublish)
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "TeaVM Gradle plugin"
|
description = "TeaVM Gradle plugin"
|
||||||
|
@ -28,18 +29,22 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
|
website.set("https://teavm.org")
|
||||||
|
vcsUrl.set("https://github.com/konsoletyper/teavm")
|
||||||
plugins {
|
plugins {
|
||||||
create("TeaVMPlugin") {
|
create("TeaVMPlugin") {
|
||||||
id = "org.teavm"
|
id = "org.teavm"
|
||||||
implementationClass = "org.teavm.gradle.TeaVMPlugin"
|
implementationClass = "org.teavm.gradle.TeaVMPlugin"
|
||||||
displayName = "TeaVM application plugin"
|
displayName = "TeaVM application plugin"
|
||||||
description = "Installs TeaVM compilation tasks, configurations and source sets"
|
description = "Installs TeaVM compilation tasks, configurations and source sets"
|
||||||
|
tags.set(listOf("teavm", "javascript", "webassembly", "compiler", "aot-compiler"))
|
||||||
}
|
}
|
||||||
create("TeaVMLibraryPlugin") {
|
create("TeaVMLibraryPlugin") {
|
||||||
id = "org.teavm.library"
|
id = "org.teavm.library"
|
||||||
implementationClass = "org.teavm.gradle.TeaVMLibraryPlugin"
|
implementationClass = "org.teavm.gradle.TeaVMLibraryPlugin"
|
||||||
displayName = "TeaVM library plugin"
|
displayName = "TeaVM library plugin"
|
||||||
description = "Installs TeaVM DSL for consuming TeaVM libraries and running tests in a browser"
|
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