2016-09-06 16:28:01 +02:00
|
|
|
repositories {
|
2018-08-10 17:01:10 +02:00
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
|
|
|
|
maven { url "https://repo.potestas.xyz/main/" }
|
|
|
|
flatDir { dirs 'lib' }
|
2016-09-06 16:28:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':Core')
|
|
|
|
compile 'com.google.guava:guava:17.0'
|
2018-02-12 16:16:13 +01:00
|
|
|
compile 'cn.nukkit:nukkit:1.0-SNAPSHOT'
|
2016-09-06 16:28:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
|
|
|
force 'com.google.guava:guava:17.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-14 00:10:01 +02:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2016-09-06 16:28:01 +02:00
|
|
|
processResources {
|
|
|
|
from('src/main/resources') {
|
|
|
|
include 'plugin.yml'
|
|
|
|
expand(
|
2018-08-10 17:01:10 +02:00
|
|
|
name: project.parent.name,
|
|
|
|
version: project.parent.version
|
2016-09-06 16:28:01 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// We only want the shadow jar produced
|
|
|
|
jar.enabled = false
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':Core'))
|
|
|
|
}
|
|
|
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
|
|
|
destinationDir = file '../target'
|
|
|
|
|
|
|
|
relocate('com.google.gson', 'com.sk89q.worldedit.internal.gson')
|
|
|
|
relocate 'org.yaml.snakeyaml', 'com.boydti.fawe.yaml'
|
|
|
|
relocate 'com.google.common', 'com.sk89q.worldedit.internal.common'
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar.doLast {
|
|
|
|
task ->
|
2018-08-10 17:01:10 +02:00
|
|
|
ant.checksum file: task.archivePath
|
2016-09-06 16:28:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar);
|