mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
61 lines
1.6 KiB
Plaintext
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)
|
|
}
|
|
} |