2018-09-20 12:59:42 +00:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
|
2018-11-10 09:26:10 +00:00
|
|
|
maven { url "https://repo.codemc.org/repository/maven-public" }
|
2018-10-12 06:09:52 +00:00
|
|
|
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
2018-09-20 12:59:42 +00:00
|
|
|
}
|
|
|
|
|
2019-04-04 23:16:04 +00:00
|
|
|
configurations.all { Configuration it ->
|
|
|
|
it.resolutionStrategy { ResolutionStrategy rs ->
|
|
|
|
rs.force("com.google.guava:guava:21.0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-20 12:59:42 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2019-04-21 06:11:39 +00:00
|
|
|
compile project(':worldedit-libs:bukkit')
|
2019-02-18 10:56:21 +00:00
|
|
|
compile 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT' // zzz
|
2019-05-31 15:24:38 +00:00
|
|
|
compileOnly 'com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT'
|
|
|
|
compileOnly "io.papermc:paperlib:1.0.2"
|
|
|
|
compileOnly 'com.sk89q:dummypermscompat:1.10'
|
|
|
|
compileOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.8.1'
|
|
|
|
compileOnly 'org.bstats:bstats-bukkit:1.4'
|
2018-09-20 12:59:42 +00:00
|
|
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2019-05-14 22:34:53 +00:00
|
|
|
filesMatching('plugin.yml') {
|
2018-09-20 12:59:42 +00:00
|
|
|
expand 'internalVersion': project.internalVersion
|
|
|
|
}
|
2019-05-14 22:34:53 +00:00
|
|
|
from (zipTree('src/main/resources/worldedit-adapters.jar').matching {
|
|
|
|
exclude 'META-INF/'
|
|
|
|
})
|
|
|
|
exclude '**/worldedit-adapters.jar'
|
2018-09-20 12:59:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
|
|
|
"WorldEdit-Version": version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
2019-03-14 03:15:01 +00:00
|
|
|
relocate "org.slf4j", "com.sk89q.worldedit.slf4j"
|
2019-05-04 09:20:02 +00:00
|
|
|
relocate "org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge"
|
2018-09-20 12:59:42 +00:00
|
|
|
include(dependency(':worldedit-core'))
|
2019-03-14 03:15:01 +00:00
|
|
|
include(dependency('org.slf4j:slf4j-api'))
|
2019-05-04 09:20:02 +00:00
|
|
|
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
2018-09-20 12:59:42 +00:00
|
|
|
relocate ("org.bstats", "com.sk89q.worldedit.bukkit.bstats") {
|
2018-11-10 09:26:10 +00:00
|
|
|
include(dependency("org.bstats:bstats-bukkit:1.4"))
|
2018-09-20 12:59:42 +00:00
|
|
|
}
|
2018-10-12 06:09:52 +00:00
|
|
|
relocate ("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
2019-05-26 06:20:02 +00:00
|
|
|
include(dependency("io.papermc:paperlib:1.0.2"))
|
2018-10-12 06:09:52 +00:00
|
|
|
}
|
2018-09-20 12:59:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|