CrazyAuctions/build.gradle.kts
2023-07-21 12:43:59 -04:00

61 lines
1.6 KiB
Plaintext

plugins {
id("root-plugin")
}
defaultTasks("build")
rootProject.group = "com.badbones69.crazyauctions"
rootProject.description = "Auction off your items in style!"
rootProject.version = "2.0.0-rc1"
val combine by tasks.registering(Jar::class) {
dependsOn("build")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(files(subprojects.map {
it.layout.buildDirectory.file("libs/${rootProject.name}-${it.name}-${it.version}.jar").get()
}).filter { it.name != "MANIFEST.MF" }.map { if (it.isDirectory) it else zipTree(it) })
}
allprojects {
listOf(
":core",
":paper"
).forEach {
project(it) {
apply(plugin = "java")
if (this.name == "paper") {
dependencies {
compileOnly("org.bstats", "bstats-bukkit", "3.0.2")
compileOnly("org.bstats", "bstats-bukkit", "3.0.2")
compileOnly("com.github.MilkBowl", "VaultAPI", "1.7") {
exclude("org.bukkit", "bukkit")
}
//compileOnly("me.lokka30", "treasury-api", "2.0.1-7417830-RELEASE")
}
}
dependencies {
compileOnly("ch.jalu", "configme", "1.3.1")
compileOnly("com.github.Carleslc.Simple-YAML", "Simple-Yaml", "1.8.4") {
exclude("org.yaml", "snakeyaml")
}
}
}
}
}
tasks {
assemble {
subprojects.forEach {
dependsOn(":${it.project.name}:build")
}
finalizedBy(combine)
}
}