CrazyAuctions/build.gradle.kts

57 lines
1.4 KiB
Plaintext
Raw Normal View History

plugins {
2023-07-21 02:16:20 +02:00
id("root-plugin")
}
2023-07-21 02:16:20 +02:00
defaultTasks("build")
2023-07-21 02:16:20 +02:00
rootProject.group = "com.badbones69.crazyauctions"
rootProject.description = "Auction off your items in style!"
rootProject.version = "2.0.0-rc1"
2023-04-01 17:19:31 +02:00
2023-07-21 02:16:20 +02:00
val combine by tasks.registering(Jar::class) {
dependsOn("build")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2023-04-01 17:19:31 +02:00
2023-07-21 02:16:20 +02:00
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) })
}
2023-07-21 02:16:20 +02:00
allprojects {
listOf(
":core",
":paper"
).forEach {
project(it) {
apply(plugin = "java")
if (this.name == "paper") {
dependencies {
2023-07-23 20:28:39 +02:00
implementation("org.bstats", "bstats-bukkit", "3.0.2")
2023-07-21 07:05:59 +02:00
2023-07-26 07:33:37 +02:00
compileOnly("com.github.MilkBowl", "VaultAPI", "1.7.1") {
2023-07-21 07:05:59 +02:00
exclude("org.bukkit", "bukkit")
}
2023-07-21 02:16:20 +02:00
}
}
2023-07-21 02:16:20 +02:00
dependencies {
2023-07-23 20:28:39 +02:00
implementation("ch.jalu", "configme", "1.3.1")
2023-07-23 20:28:39 +02:00
implementation("com.github.Carleslc.Simple-YAML", "Simple-Yaml", "1.8.4") {
2023-07-21 02:16:20 +02:00
exclude("org.yaml", "snakeyaml")
}
}
}
2023-07-21 02:16:20 +02:00
}
}
2023-04-01 17:19:31 +02:00
2023-07-21 02:16:20 +02:00
tasks {
assemble {
subprojects.forEach {
dependsOn(":${it.project.name}:build")
2023-04-01 17:19:31 +02:00
}
2023-07-21 02:16:20 +02:00
finalizedBy(combine)
}
}