added example local Gradle tasks for deploying and uploading plugins
This commit is contained in:
24
local.gradle.example
Normal file
24
local.gradle.example
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
tasks.register('deployVaroPlugin', Copy) {
|
||||||
|
dependsOn ":varo:shadowJar"
|
||||||
|
from { project(":varo").shadowJar.archivePath }
|
||||||
|
into file('path') // path to plugins folder
|
||||||
|
rename { fileName -> "varo.jar" }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("uploadVaroPlugin") {
|
||||||
|
dependsOn(":varo:shadowJar")
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
def jarFile = project(":varo").tasks.named("shadowJar").get().outputs.files.singleFile
|
||||||
|
exec {
|
||||||
|
commandLine "scp", "-4", "-P", "22", jarFile.absolutePath, "user@host:path/varo.jar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register('deployCraftAttackPlugin', Copy) {
|
||||||
|
dependsOn ":craftattack:shadowJar"
|
||||||
|
from { project(":craftattack").shadowJar.archivePath }
|
||||||
|
into file('path') // path to plugins folder
|
||||||
|
rename { fileName -> "craftattack.jar" }
|
||||||
|
}
|
Reference in New Issue
Block a user