2014-11-14 20:27:39 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'forge'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2015-06-29 21:57:01 +02:00
|
|
|
compile 'org.spongepowered:spongeapi:2.1-SNAPSHOT'
|
2014-11-14 20:27:39 +01:00
|
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
|
|
|
}
|
|
|
|
|
2015-06-29 21:57:01 +02:00
|
|
|
repositories {
|
|
|
|
maven { url ="https://repo.spongepowered.org/maven" }
|
|
|
|
}
|
|
|
|
|
2014-11-14 20:27:39 +01:00
|
|
|
minecraft {
|
2015-01-16 04:39:15 +01:00
|
|
|
ext.forgeVersion = "11.14.0.1281"
|
|
|
|
version = "1.8-$forgeVersion-1.8"
|
2014-11-14 20:27:39 +01: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 21:57:01 +02:00
|
|
|
'mcVersion': project.minecraft.version,
|
2014-11-14 20:27:39 +01:00
|
|
|
'forgeVersion': project.minecraft.forgeVersion,
|
|
|
|
'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",
|
|
|
|
"WorldEdit-Version": version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':worldedit-core'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
reobf.reobf(shadowJar) { spec ->
|
|
|
|
spec.classpath = sourceSets.main.compileClasspath;
|
|
|
|
}
|
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
|
|
|
}
|
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|