2020-02-10 22:13:29 +01:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2020-02-10 22:19:14 +01:00
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
2019-09-30 21:53:44 +02:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
id("com.github.johnrengelman.shadow") version "5.1.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency("org.spongepowered:configurate-yaml"))
|
|
|
|
include(dependency("org.spongepowered:configurate-hocon"))
|
|
|
|
include(dependency("org.spongepowered:configurate-core"))
|
|
|
|
include(dependency("org.bstats:bstats-bukkit"))
|
|
|
|
include(dependency("org.apache.tomcat:tomcat-jdbc"))
|
|
|
|
include(dependency("org.apache.tomcat:tomcat-juli"))
|
|
|
|
include(dependency("com.typesafe:config"))
|
2020-02-10 22:13:29 +01:00
|
|
|
include(dependency("co.aikar:acf-core"))
|
2020-02-08 00:06:00 +01:00
|
|
|
include(dependency("co.aikar:acf-bukkit"))
|
2020-02-18 03:46:48 +01:00
|
|
|
include(dependency("net.kyori:text-api"))
|
2020-02-18 04:27:21 +01:00
|
|
|
include(dependency("net.kyori:text-adapter-bukkit"))
|
|
|
|
include(dependency("net.kyori:text-serializer-gson"))
|
2019-09-30 21:53:44 +02:00
|
|
|
exclude(dependency("org.spigotmc:spigot"))
|
|
|
|
}
|
|
|
|
relocate("org.apache.commons.logging", "com.gmail.nossr50.commons.logging")
|
|
|
|
relocate("org.apache.juli", "com.gmail.nossr50.database.tomcat.juli")
|
|
|
|
relocate("org.apache.tomcat", "com.gmail.nossr50.database.tomcat")
|
|
|
|
relocate("org.bstats", "com.gmail.nossr50.metrics.bstat")
|
2020-02-10 22:13:29 +01:00
|
|
|
relocate("co.aikar.commands", "com.gmail.nossr50.aikar.commands")
|
|
|
|
relocate("co.aikar.locales", "com.gmail.nossr50.aikar.locales")
|
|
|
|
relocate("co.aikar.table", "com.gmail.nossr50.aikar.table")
|
|
|
|
relocate("net.jodah.expiringmap", "com.gmail.nossr50.expiringmap")
|
2020-02-18 04:27:21 +01:00
|
|
|
relocate("net.kyori.text", "com.gmail.nossr50.kyoripowered.text")
|
2020-02-10 22:13:29 +01:00
|
|
|
|
|
|
|
mergeServiceFiles()
|
2019-09-30 21:53:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
filter<ReplaceTokens>("tokens" to mapOf("project.version" to project.version))
|
|
|
|
filesMatching("**/locales/*") {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2020-02-10 22:13:29 +01:00
|
|
|
|
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
|
|
dependencies{
|
|
|
|
include { true }
|
|
|
|
}
|
2019-09-30 21:53:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api("org.apache.tomcat:tomcat-jdbc:7.0.52")
|
|
|
|
api("com.typesafe:config:1.3.2")
|
|
|
|
api("org.spongepowered:configurate-core:3.7-SNAPSHOT")
|
|
|
|
api("org.spongepowered:configurate-yaml:3.7-SNAPSHOT")
|
|
|
|
api("org.spongepowered:configurate-hocon:3.7-SNAPSHOT")
|
2020-02-10 22:13:29 +01:00
|
|
|
api("co.aikar:acf-core:0.5.0-SNAPSHOT") //Don't change without updating the artifacts for its dependencies (see the other comments)
|
2020-02-13 00:20:21 +01:00
|
|
|
api("co.aikar:acf-paper:0.5.0-SNAPSHOT") //Don't change without updating the artifacts for its dependencies (see the other comments)
|
2020-02-18 04:27:21 +01:00
|
|
|
api("net.kyori:text-api:3.0.2")
|
|
|
|
api("net.kyori:text-serializer-gson:3.0.2")
|
|
|
|
api("net.kyori:text-adapter-bukkit:3.0.4-SNAPSHOT")
|
2019-09-30 21:53:44 +02:00
|
|
|
implementation("org.jetbrains:annotations:17.0.0")
|
|
|
|
implementation("org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1")
|
|
|
|
implementation("org.bstats:bstats-bukkit:1.4")
|
|
|
|
implementation("org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT")
|
|
|
|
implementation("com.sk89q.worldguard:worldguard-legacy:7.0.0-SNAPSHOT")
|
|
|
|
testImplementation("junit:junit:4.10")
|
|
|
|
}
|
|
|
|
|
|
|
|
|