2016-05-21 10:28:22 +00:00
|
|
|
plugins {
|
2019-07-10 20:13:41 +00:00
|
|
|
id("org.spongepowered.plugin")
|
2016-05-21 10:28:22 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 23:33:21 +00:00
|
|
|
PlatformConfigKt.applyPlatformAndCoreConfiguration(project)
|
|
|
|
PlatformConfigKt.applyShadowConfiguration(project)
|
|
|
|
|
2018-09-20 12:59:42 +00:00
|
|
|
repositories {
|
2018-11-10 09:26:10 +00:00
|
|
|
maven { url "https://repo.codemc.org/repository/maven-public" }
|
2018-09-20 12:59:42 +00:00
|
|
|
}
|
|
|
|
|
2016-02-02 06:28:27 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2019-04-21 06:11:39 +00:00
|
|
|
compile project(':worldedit-libs:sponge')
|
2018-12-24 12:07:09 +00:00
|
|
|
compile 'org.spongepowered:spongeapi:7.1.0'
|
2019-06-13 13:17:00 +00:00
|
|
|
compile 'org.bstats:bstats-sponge:1.5'
|
2016-02-02 06:28:27 +00:00
|
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
2017-05-06 06:53:28 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2016-02-02 06:28:27 +00:00
|
|
|
|
2016-05-21 10:28:22 +00:00
|
|
|
sponge {
|
|
|
|
plugin {
|
|
|
|
id = 'worldedit'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-02 06:28:27 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
2016-05-21 10:28:22 +00:00
|
|
|
"WorldEdit-Version": version)
|
2016-02-02 06:28:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
2019-04-21 06:33:54 +00:00
|
|
|
relocate ("org.bstats", "com.sk89q.worldedit.sponge.bstats") {
|
2019-06-13 13:17:00 +00:00
|
|
|
include(dependency('org.bstats:bstats-sponge:1.5'))
|
2019-04-21 06:33:54 +00:00
|
|
|
}
|
2016-02-02 06:28:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-18 04:28:37 +00:00
|
|
|
if (project.hasProperty("signing")) {
|
|
|
|
apply plugin: 'signing'
|
|
|
|
|
|
|
|
signing {
|
|
|
|
sign shadowJar
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn('signShadowJar')
|
2018-01-14 02:41:14 +00:00
|
|
|
}
|