2019-02-16 21:35:54 -08:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2019-02-16 18:39:44 -08:00
|
|
|
import Config.Libs.Sponge as Sponge
|
|
|
|
|
2019-02-07 16:09:35 -08:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
}
|
|
|
|
|
2019-02-16 18:39:44 -08:00
|
|
|
val core = Projects.core!! // because it's a var and potentially null by declaration
|
|
|
|
val sponge = Projects.sponge!! // because it's a var and potentially null by declaration
|
2019-02-07 16:09:35 -08:00
|
|
|
|
|
|
|
description = "mcMMO for Sponge"
|
|
|
|
|
2019-02-07 19:55:52 -08:00
|
|
|
dependencies {
|
2019-02-16 18:39:44 -08:00
|
|
|
compile(Sponge.bstats) // Bstats is used for all sponge versions
|
|
|
|
compileOnly(Sponge.API7.api) // Base version
|
2019-02-07 19:55:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
dependencies {
|
2019-02-16 18:39:44 -08:00
|
|
|
compile(Projects.core!!)
|
2019-02-07 16:09:35 -08:00
|
|
|
}
|
2019-02-16 21:35:54 -08:00
|
|
|
// TODO dunno if this works yet... project needs to compile.
|
|
|
|
val shadowJar by tasks.getting(ShadowJar::class) {
|
|
|
|
relocate(Deps.Groups.nossr, "${Deps.Groups.nossr}.sponge") {
|
|
|
|
exclude("${Deps.Groups.nossr}.core")
|
|
|
|
}
|
|
|
|
}
|
2019-02-07 17:10:08 -08:00
|
|
|
}
|
|
|
|
|
2019-02-07 19:55:52 -08:00
|
|
|
subprojects {
|
2019-02-07 17:10:08 -08:00
|
|
|
dependencies {
|
2019-02-16 18:39:44 -08:00
|
|
|
(compileOnly(sponge) as ModuleDependency).apply {
|
|
|
|
exclude(Sponge.Exclude.group, Sponge.Exclude.module)
|
2019-02-07 19:55:52 -08:00
|
|
|
}
|
2019-02-07 17:10:08 -08:00
|
|
|
}
|
2019-02-07 19:55:52 -08:00
|
|
|
}
|
|
|
|
|