mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-30 13:14:06 +01:00
b6dac54677
Updated gradle wrapper to 3.0 Updated Gradle files for Nukkit Added/cleaned minor Nukkit code Removed duplicate TitleManagement code Signed-off-by: MattBDev <mattbdev@outlook.com>
51 lines
1.2 KiB
Groovy
51 lines
1.2 KiB
Groovy
repositories {
|
|
maven {url "http://ci.regularbox.com/plugin/repository/everything/"}
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/"}
|
|
maven {url "http://nexus.hc.to/content/repositories/pub_releases"}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':Core')
|
|
compile 'cn.nukkit:nukkit:1.0-SNAPSHOT'
|
|
compile 'com.google.guava:guava:17.0'
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force 'com.google.guava:guava:17.0'
|
|
}
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
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);
|