mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 11:06:13 +01:00
47 lines
1.2 KiB
Groovy
47 lines
1.2 KiB
Groovy
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
|
|
project.version = '7.0.0-SNAPSHOT'
|
|
ext.internalVersion = project.version + ";" + gitCommitHash
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
checkstyle.configFile = new File(projectDir, "config/checkstyle/checkstyle.xml")
|
|
|
|
dependencies {
|
|
compile project(':worldguard-core')
|
|
compile 'org.bukkit:bukkit:1.13-R0.1-SNAPSHOT'
|
|
compile 'com.sk89q.worldedit:worldedit-bukkit:7.0.0-SNAPSHOT'
|
|
compile ('com.sk89q:commandbook:2.3') {
|
|
exclude group: 'com.sk89q', module: 'worldedit'
|
|
exclude group: 'com.zachsthings.libcomponents'
|
|
}
|
|
testCompile 'junit:junit:4.11'
|
|
testCompile 'org.hamcrest:hamcrest-library:1.2.1'
|
|
}
|
|
|
|
processResources {
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
expand project.properties
|
|
include 'plugin.yml'
|
|
}
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
exclude 'plugin.yml'
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
dependencies {
|
|
include(dependency(':worldguard-core'))
|
|
}
|
|
|
|
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)
|