2018-09-20 20:59:42 +08:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
|
2018-11-10 17:26:10 +08:00
|
|
|
maven { url "https://repo.codemc.org/repository/maven-public" }
|
2018-10-12 14:09:52 +08:00
|
|
|
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
2018-09-20 20:59:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2019-04-21 14:11:39 +08:00
|
|
|
compile project(':worldedit-libs:bukkit')
|
2019-03-08 12:55:58 +08:00
|
|
|
compile 'com.sk89q:dummypermscompat:1.10'
|
2019-02-18 18:56:21 +08:00
|
|
|
compile 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT' // zzz
|
2018-10-12 14:09:52 +08:00
|
|
|
compile "io.papermc:paperlib:1.0.1"
|
2019-03-14 10:51:48 +08:00
|
|
|
compile 'org.slf4j:slf4j-jdk14:1.7.26'
|
2019-04-21 14:33:54 +08:00
|
|
|
compile 'org.bstats:bstats-bukkit:1.4'
|
2018-09-20 20:59:42 +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 {
|
2019-03-14 11:15:01 +08:00
|
|
|
relocate "org.slf4j", "com.sk89q.worldedit.slf4j"
|
2018-09-20 20:59:42 +08:00
|
|
|
include(dependency(':worldedit-core'))
|
2019-03-14 11:15:01 +08:00
|
|
|
include(dependency('org.slf4j:slf4j-api'))
|
|
|
|
include(dependency("org.slf4j:slf4j-jdk14"))
|
2019-04-19 21:06:00 +08:00
|
|
|
include(dependency("net.kyori:text-adapter-bukkit:1.0.3"))
|
2018-09-20 20:59:42 +08:00
|
|
|
relocate ("org.bstats", "com.sk89q.worldedit.bukkit.bstats") {
|
2018-11-10 17:26:10 +08:00
|
|
|
include(dependency("org.bstats:bstats-bukkit:1.4"))
|
2018-09-20 20:59:42 +08:00
|
|
|
}
|
2018-10-12 14:09:52 +08:00
|
|
|
relocate ("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
|
|
|
include(dependency("io.papermc:paperlib:1.0.1"))
|
|
|
|
}
|
2018-09-20 20:59:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|