2014-12-02 23:02:13 +08:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
2018-06-11 21:45:19 +08:00
|
|
|
apply plugin: 'maven'
|
2014-12-02 23:02:13 +08:00
|
|
|
|
2016-03-08 08:26:16 +08:00
|
|
|
repositories {
|
2018-06-11 21:45:19 +08:00
|
|
|
mavenLocal()
|
2016-03-08 08:26:16 +08:00
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
|
|
|
|
}
|
|
|
|
|
2014-11-15 03:27:39 +08:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2015-01-11 08:57:53 +08:00
|
|
|
compile 'com.sk89q:dummypermscompat:1.8'
|
2018-07-15 22:21:32 +08:00
|
|
|
compile 'org.bukkit:bukkit:1.13-pre7-R0.1-SNAPSHOT' // zzz
|
2018-07-12 20:23:03 +08:00
|
|
|
// compile 'org.bukkit:bukkit:1.9.4-R0.1-SNAPSHOT' // zzz
|
2014-11-15 03:27:39 +08:00
|
|
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
expand 'internalVersion': project.internalVersion
|
|
|
|
include 'plugin.yml'
|
|
|
|
}
|
|
|
|
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'plugin.yml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
|
|
|
"WorldEdit-Version": version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':worldedit-core'))
|
2018-07-15 22:21:32 +08:00
|
|
|
include(dependency('com.google.code.gson:gson'))
|
2014-11-15 03:27:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
relocate('com.google.gson', 'com.sk89q.worldedit.internal.gson')
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|