mcMMO/sponge/build.gradle.kts
Gabriel Harris-Rouquette 8645ce641d
Complete Kotlin-DSL Gradle scripting for multiple projects.
Added the shadow plugin integration with the entire project. Indvidual
modules each have their designated dependencies and each will assign
various dependencies based on constants now made through buildSrc.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2019-02-16 18:41:28 -08:00

31 lines
654 B
Plaintext

import Config.Libs.Sponge as Sponge
plugins {
java
}
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
description = "mcMMO for Sponge"
dependencies {
compile(Sponge.bstats) // Bstats is used for all sponge versions
compileOnly(Sponge.API7.api) // Base version
}
allprojects {
dependencies {
compile(Projects.core!!)
}
}
subprojects {
dependencies {
(compileOnly(sponge) as ModuleDependency).apply {
exclude(Sponge.Exclude.group, Sponge.Exclude.module)
}
}
}