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 {
|
2017-08-05 16:18:52 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-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
|
|
|
|
2017-08-16 23:07:18 +00:00
|
|
|
|
2014-11-14 19:27:39 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2017-08-16 23:07:18 +00:00
|
|
|
compile 'org.spongepowered:spongeapi:6.0.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
|
|
|
}
|
|
|
|
|
2017-08-16 23:07:18 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2017-08-16 23:07:18 +00:00
|
|
|
ext.forgeVersion = "14.22.0.2456"
|
2016-01-17 04:42:21 +00:00
|
|
|
|
2014-11-14 19:27:39 +00:00
|
|
|
minecraft {
|
2017-08-16 23:07:18 +00:00
|
|
|
version = "1.12.1-${project.forgeVersion}"
|
|
|
|
mappings = "snapshot_20170815"
|
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
|
|
|
|
}
|