2015-11-14 01:12:55 +01:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
|
2016-06-11 18:38:45 +02:00
|
|
|
project.version = '6.1.3-SNAPSHOT'
|
2016-01-11 07:04:59 +01:00
|
|
|
ext.internalVersion = project.version + ";" + gitCommitHash
|
2015-11-14 01:12:55 +01:00
|
|
|
|
2016-03-02 21:59:31 +01:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
targetCompatibility = 1.7
|
|
|
|
|
2015-11-14 02:04:51 +01:00
|
|
|
checkstyle.configFile = new File(projectDir, "config/checkstyle/checkstyle.xml")
|
2015-11-14 01:12:55 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile 'org.khelekore:prtree:1.5.0'
|
2016-05-20 20:49:09 +02:00
|
|
|
compile 'org.bukkit:bukkit:1.9.4-R0.1-SNAPSHOT'
|
2016-06-11 07:22:40 +02:00
|
|
|
compile 'com.sk89q.worldedit:worldedit-bukkit:6.1.3-SNAPSHOT'
|
2015-11-14 01:12:55 +01:00
|
|
|
compile 'com.sk89q:squirrelid:0.1.0'
|
|
|
|
compile 'com.sk89q:guavabackport:1.1'
|
|
|
|
compile 'org.flywaydb:flyway-core:3.0'
|
2016-06-11 07:22:40 +02:00
|
|
|
compile ('com.sk89q:commandbook:2.3') {
|
|
|
|
exclude group: 'com.sk89q', module: 'worldedit'
|
|
|
|
exclude group: 'com.zachsthings.libcomponents'
|
|
|
|
}
|
2015-11-14 01:12:55 +01:00
|
|
|
compile 'net.sf.opencsv:opencsv:2.0'
|
|
|
|
compile 'com.googlecode.json-simple:json-simple:1.1.1'
|
|
|
|
compile 'com.google.code.findbugs:jsr305:1.3.9'
|
|
|
|
testCompile 'junit:junit:4.11'
|
|
|
|
testCompile 'org.hamcrest:hamcrest-library:1.2.1'
|
|
|
|
}
|
|
|
|
|
2016-01-11 07:04:59 +01:00
|
|
|
processResources {
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
expand project.properties
|
|
|
|
include 'plugin.yml'
|
|
|
|
}
|
|
|
|
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'plugin.yml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-14 01:12:55 +01:00
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency('org.khelekore:prtree:1.5.0'))
|
|
|
|
include(dependency('com.sk89q:guavabackport:1.1'))
|
|
|
|
include(dependency('com.sk89q:squirrelid:0.1.0'))
|
|
|
|
include(dependency('org.flywaydb:flyway-core:3.0'))
|
|
|
|
include(dependency('com.googlecode.json-simple:json-simple:1.1.1'))
|
|
|
|
include(dependency('net.sf.opencsv:opencsv:2.0'))
|
|
|
|
}
|
2016-06-11 07:22:40 +02:00
|
|
|
|
2015-11-14 01:12:55 +01:00
|
|
|
relocate('com.sk89q.guavabackport', 'com.sk89q.worldguard.internal.guava')
|
|
|
|
relocate('org.flywaydb', 'com.sk89q.worldguard.internal.flywaydb')
|
|
|
|
relocate('com.sk89q.squirrelid', 'com.sk89q.worldguard.util.profile')
|
|
|
|
relocate('org.json.simple', 'com.sk89q.worldguard.util.jsonsimple')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|