Files
Civ/ansible/build.gradle.kts
2024-08-19 22:51:11 +01:00

59 lines
2.3 KiB
Kotlin

val paperPlugin by configurations.creating
val proxyPlugin by configurations.creating
dependencies {
paperPlugin(project(path = ":plugins:banstick-paper", configuration = "shadow"))
paperPlugin(project(path = ":plugins:bastion-paper"))
paperPlugin(project(path = ":plugins:castlegates-paper"))
paperPlugin(project(path = ":plugins:citadel-paper"))
paperPlugin(project(path = ":plugins:civchat2-paper"))
paperPlugin(project(path = ":plugins:civduties-paper"))
paperPlugin(project(path = ":plugins:civmodcore-paper", configuration = "shadow"))
paperPlugin(project(path = ":plugins:combattagplus-paper"))
paperPlugin(project(path = ":plugins:donum-paper"))
paperPlugin(project(path = ":plugins:essenceglue-paper"))
paperPlugin(project(path = ":plugins:exilepearl-paper"))
paperPlugin(project(path = ":plugins:factorymod-paper"))
paperPlugin(project(path = ":plugins:finale-paper"))
paperPlugin(project(path = ":plugins:hiddenore-paper"))
paperPlugin(project(path = ":plugins:itemexchange-paper"))
paperPlugin(project(path = ":plugins:jukealert-paper"))
paperPlugin(project(path = ":plugins:kirabukkitgateway-paper", configuration = "shadow"))
paperPlugin(project(path = ":plugins:namecolors-paper"))
paperPlugin(project(path = ":plugins:namelayer-paper"))
paperPlugin(project(path = ":plugins:railswitch-paper"))
paperPlugin(project(path = ":plugins:randomspawn-paper"))
paperPlugin(project(path = ":plugins:realisticbiomes-paper"))
paperPlugin(project(path = ":plugins:simpleadminhacks-paper"))
}
val copyPaperPlugins = tasks.register<Copy>("copyPaperPlugins") {
dependsOn(paperPlugin)
doFirst {
project.delete(files("$buildDir/paper-plugins"))
}
from("$projectDir/src/paper-plugins")
from(paperPlugin.resolvedConfiguration.resolvedArtifacts.map { it.file })
into("$buildDir/paper-plugins")
}
val copyProxyPlugins = tasks.register<Copy>("copyProxyPlugins") {
dependsOn(proxyPlugin)
doFirst {
project.delete(files("$buildDir/proxy-plugins"))
}
from("$projectDir/src/proxy-plugins")
from(proxyPlugin.resolvedConfiguration.resolvedArtifacts.map { it.file })
into("$buildDir/proxy-plugins")
}
// TODO: Is build the right name?
tasks.register("build") {
dependsOn(copyPaperPlugins)
dependsOn(copyProxyPlugins)
}