PlotSquared/Nukkit/build.gradle

51 lines
1.3 KiB
Groovy
Raw Normal View History

2016-09-06 16:28:01 +02:00
repositories {
2017-07-07 08:11:46 +02:00
maven {url "http://ci.mengcraft.com:8080/plugin/repository/everything"}
2016-09-06 16:28:01 +02:00
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/"}
maven {url "http://nexus.hc.to/content/repositories/pub_releases"}
}
dependencies {
compile project(':Core')
2017-07-07 08:11:46 +02:00
compile group: "cn.nukkit", name: "nukkit", version: "1.0-20170704.231613-609", changing: true
2016-09-06 16:28:01 +02:00
compile 'com.google.guava:guava:17.0'
}
configurations.all {
resolutionStrategy {
force 'com.google.guava:guava:17.0'
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
2016-09-06 16:28:01 +02:00
processResources {
from('src/main/resources') {
include 'plugin.yml'
expand(
name: project.parent.name,
version: project.parent.version
)
}
}
// 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 ->
ant.checksum file: task.archivePath
}
build.dependsOn(shadowJar);