2019-02-07 17:10:08 -08:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2019-02-07 16:09:35 -08:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
2019-02-07 17:10:08 -08:00
|
|
|
id("org.spongepowered.plugin") version "0.9.0" // supplies sponge repo and plugin metadata creation tasks
|
|
|
|
id("com.github.johnrengelman.shadow")
|
2019-02-07 16:09:35 -08:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
compile("org.spongepowered", "spongeapi", "7.1.0") // SpongeAPI
|
2019-02-07 17:10:08 -08:00
|
|
|
compile(project(":core"))
|
2019-02-07 16:09:35 -08:00
|
|
|
|
2019-02-07 17:10:08 -08:00
|
|
|
compile("org.bstats", "bstats-sponge", "1.4") // Sponge bstats
|
2019-02-07 16:09:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
description = "mcMMO for Sponge"
|
|
|
|
|
|
|
|
val jar by tasks.getting(Jar::class) {
|
|
|
|
manifest {
|
|
|
|
attributes(mapOf(
|
2019-02-07 17:10:08 -08:00
|
|
|
"Implementation-Title" to "mcMMO",
|
|
|
|
"Implementation-Version" to rootProject.properties["pluginVersion"]!!
|
2019-02-07 16:09:35 -08:00
|
|
|
))
|
|
|
|
}
|
2019-02-07 17:10:08 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
val shadowJar by tasks.getting(ShadowJar::class) {
|
|
|
|
dependencies {
|
|
|
|
include(project(":core"))
|
|
|
|
}
|
2019-02-07 16:09:35 -08:00
|
|
|
}
|