2016-02-02 06:28:27 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
2016-05-21 10:28:22 +00:00
|
|
|
maven { url = "http://repo.minecrell.net/releases" }
|
2016-02-02 06:28:27 +00:00
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-05-21 10:28:22 +00:00
|
|
|
classpath 'net.minecrell:VanillaGradle:2.0.3_1'
|
2016-02-02 06:28:27 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-21 10:28:22 +00:00
|
|
|
plugins {
|
|
|
|
id 'org.spongepowered.plugin' version '0.5.2'
|
|
|
|
}
|
|
|
|
|
2016-03-22 04:24:02 +00:00
|
|
|
apply plugin: 'net.minecrell.vanilla.server.library'
|
2016-02-02 06:28:27 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2016-05-20 18:04:59 +00:00
|
|
|
compile 'org.spongepowered:spongeapi:4.1.0-SNAPSHOT'
|
2016-02-02 06:28:27 +00:00
|
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
2016-05-21 10:28:22 +00:00
|
|
|
sponge {
|
|
|
|
plugin {
|
|
|
|
id = 'worldedit'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-02 06:28:27 +00:00
|
|
|
minecraft {
|
2016-03-22 04:24:02 +00:00
|
|
|
version = "1.8.9"
|
|
|
|
mappings = "stable_22"
|
2016-02-02 06:28:27 +00:00
|
|
|
runDir = 'run'
|
|
|
|
}
|
|
|
|
|
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
2016-05-21 10:28:22 +00:00
|
|
|
"WorldEdit-Version": version)
|
2016-02-02 06:28:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':worldedit-core'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappingType = 'SEARGE'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
|
|
|
}
|