mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-10-17 01:23:39 +02:00
cb01515451
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
import Config.Libs.Bukkit as Bukkit
|
|
|
|
val bukkit: Project = Projects.bukkit!!
|
|
val core: Project = Projects.core!!
|
|
|
|
allprojects {
|
|
|
|
dependencies {
|
|
compile(core) // includes junit for tests
|
|
implementation(Bukkit.bstats) // Bukkit bstats
|
|
}
|
|
|
|
// TODO dunno if this works yet... project needs to compile.
|
|
val shadowJar by tasks.getting(ShadowJar::class) {
|
|
relocate(Shadow.Origin.bstatsBukkit, Shadow.Target.bstatsBukkit)
|
|
relocate(Deps.Groups.nossr, "${Deps.Groups.nossr}.bukkit") {
|
|
exclude("${Deps.Groups.nossr}.core")
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
dependencies {
|
|
// Provide the base bukkit plugin dependency for plugin classloading.
|
|
// All "versioned" implementations will be properly classloaded by the bukkit parent
|
|
compileOnly(bukkit)
|
|
}
|
|
}
|
|
plugins {
|
|
java
|
|
}
|
|
dependencies {
|
|
// Temporary dependencies while things are being moved.
|
|
compileOnly(Bukkit.`1_13`.spigotApi) { // Spigot API
|
|
isTransitive = true
|
|
}
|
|
compileOnly(Bukkit.`1_13`.api) { // Spigot API
|
|
isTransitive = true
|
|
|
|
}
|
|
compileOnly(Bukkit.`1_13`.wgCore) {
|
|
isTransitive = true
|
|
exclude(group = Shadow.Exclude.sk89q)
|
|
exclude(group = Shadow.Exclude.intake, module = "intake")
|
|
exclude(group = Shadow.Exclude.sk89q, module = "squirrelid")
|
|
exclude(group = Shadow.Exclude.flyway)
|
|
exclude(group = Shadow.Exclude.khelekore)
|
|
exclude(group = Shadow.Exclude.findbugs)
|
|
}
|
|
compileOnly(Bukkit.`1_13`.wgLegacy) {
|
|
isTransitive = true
|
|
exclude(group = Shadow.Exclude.bukkit)
|
|
exclude(group = Shadow.Exclude.sk89q, module = "commandbook")
|
|
exclude(group = Shadow.Exclude.bstats)
|
|
}
|
|
}
|