2014-11-14 19:27:39 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-11-18 07:47:43 +00:00
|
|
|
mavenLocal()
|
2014-11-14 19:27:39 +00:00
|
|
|
mavenCentral()
|
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-11-18 07:47:43 +00:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-18 07:47:43 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
2014-11-14 19:27:39 +00:00
|
|
|
|
2018-10-05 00:18:43 +00:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
|
|
|
force 'org.ow2.asm:asm:5.2'
|
|
|
|
}
|
|
|
|
}
|
2017-08-16 23:07:18 +00:00
|
|
|
|
2018-11-18 07:47:43 +00:00
|
|
|
def minecraftVersion = "1.13"
|
|
|
|
def forgeVersion = "24.0.16-1.13-pre"
|
|
|
|
|
2014-11-14 19:27:39 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(':worldedit-core')
|
2018-11-18 07:47:43 +00:00
|
|
|
|
|
|
|
minecraft "net.minecraftforge.test:forge:${minecraftVersion}-${forgeVersion}"
|
|
|
|
|
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
|
|
|
|
|
2014-11-14 19:27:39 +00:00
|
|
|
minecraft {
|
2018-11-18 07:47:43 +00:00
|
|
|
mappings channel: 'snapshot', version: '20181117'
|
|
|
|
// runDir = 'run'
|
2014-11-14 19:27:39 +00:00
|
|
|
|
2018-11-18 07:47:43 +00:00
|
|
|
// replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
|
|
|
|
// replace "%VERSION%", project.version
|
2014-11-14 19:27:39 +00:00
|
|
|
}
|
|
|
|
|
2018-11-18 07:47:43 +00:00
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraftVersion}"
|
2014-11-14 19:27:39 +00:00
|
|
|
|
|
|
|
processResources {
|
|
|
|
from (sourceSets.main.resources.srcDirs) {
|
|
|
|
expand 'version': project.version,
|
2018-11-18 07:47:43 +00:00
|
|
|
'mcVersion': minecraftVersion,
|
|
|
|
'forgeVersion': 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'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-18 07:47:43 +00:00
|
|
|
//reobf {
|
|
|
|
// shadowJar {
|
|
|
|
// mappingType = 'SEARGE'
|
|
|
|
// }
|
|
|
|
//}
|
2014-11-14 19:27:39 +00:00
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
|
|
|
}
|