2014-11-14 19:27:39 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-06-18 07:32:17 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-12 09:46:10 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2014-11-14 19:27:39 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2016-01-12 09:46:10 +00:00
|
|
|
compile 'org.spongepowered:spongeapi:3.1.0-SNAPSHOT'
|
2016-02-23 01:54:50 +00:00
|
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.0-rc1'
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
|
2015-06-29 19:57:01 +00:00
|
|
|
repositories {
|
2016-01-12 09:46:10 +00:00
|
|
|
maven {
|
|
|
|
name = "Sponge"
|
|
|
|
url = "https://repo.spongepowered.org/maven"
|
|
|
|
}
|
2015-06-29 19:57:01 +00:00
|
|
|
}
|
|
|
|
|
2016-11-20 05:04:05 +00:00
|
|
|
ext.forgeVersion = "13.19.0.2177"
|
2016-01-17 04:42:21 +00:00
|
|
|
|
2014-11-14 19:27:39 +00:00
|
|
|
minecraft {
|
2016-11-18 06:17:04 +00:00
|
|
|
version = "1.11-${project.forgeVersion}"
|
2016-11-20 05:04:05 +00:00
|
|
|
mappings = "snapshot_20161130"
|
2016-01-12 09:46:10 +00:00
|
|
|
runDir = 'run'
|
2014-11-14 19:27:39 +00:00
|
|
|
|
|
|
|
replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
|
|
|
|
replace "%VERSION%", project.version
|
|
|
|
}
|
|
|
|
|
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
expand 'version': project.version,
|
2015-06-29 19:57:01 +00:00
|
|
|
'mcVersion': project.minecraft.version,
|
2016-01-12 09:46:10 +00:00
|
|
|
'forgeVersion': project.forgeVersion,
|
2014-11-14 19:27:39 +00:00
|
|
|
'internalVersion': project.internalVersion
|
|
|
|
include 'mcmod.info'
|
|
|
|
}
|
|
|
|
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
2016-01-12 10:03:02 +00:00
|
|
|
"WorldEdit-Version": version,
|
|
|
|
"FMLAT": "worldedit_at.cfg")
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':worldedit-core'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-12 09:46:10 +00:00
|
|
|
reobf {
|
2016-01-12 23:32:58 +00:00
|
|
|
shadowJar {
|
|
|
|
mappingType = 'SEARGE'
|
|
|
|
}
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
|
|
|
}
|