Plex-FAWE/worldedit-forge/build.gradle

88 lines
1.9 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
2018-11-18 07:47:43 +00:00
mavenLocal()
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
}
}
2018-11-18 07:47:43 +00:00
apply plugin: 'net.minecraftforge.gradle'
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"
dependencies {
compile project(':worldedit-core')
2018-11-18 07:47:43 +00:00
minecraft "net.minecraftforge.test:forge:${minecraftVersion}-${forgeVersion}"
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.0-rc1'
}
2017-08-16 23:07:18 +00:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
2018-11-18 07:47:43 +00:00
mappings channel: 'snapshot', version: '20181117'
// runDir = 'run'
2018-11-18 07:47:43 +00:00
// replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
// replace "%VERSION%", project.version
}
2018-11-18 07:47:43 +00:00
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraftVersion}"
processResources {
from (sourceSets.main.resources.srcDirs) {
expand 'version': project.version,
2018-11-18 07:47:43 +00:00
'mcVersion': minecraftVersion,
'forgeVersion': 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",
2016-01-12 10:03:02 +00:00
"WorldEdit-Version": version,
"FMLAT": "worldedit_at.cfg")
}
}
shadowJar {
dependencies {
include(dependency(':worldedit-core'))
}
}
2018-11-18 07:47:43 +00:00
//reobf {
// shadowJar {
// mappingType = 'SEARGE'
// }
//}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
artifacts {
archives deobfJar
}