Plex-FAWE/worldedit-forge/build.gradle

86 lines
1.9 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
2016-01-12 09:46:10 +00:00
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
2016-01-12 09:46:10 +00:00
apply plugin: 'net.minecraftforge.gradle.forge'
dependencies {
compile project(':worldedit-core')
2016-01-12 09:46:10 +00:00
compile 'org.spongepowered:spongeapi:3.1.0-SNAPSHOT'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.0-rc1'
}
repositories {
2016-01-12 09:46:10 +00:00
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/maven"
}
}
2016-05-08 21:08:31 +00:00
version = "6.1.2"
2016-03-19 16:53:52 +00:00
ext.forgeVersion = "12.16.1.1891"
ext.internalVersion = version + ";" + gitCommitHash
minecraft {
2016-03-19 16:53:52 +00:00
version = "1.9-${project.forgeVersion}"
mappings = "snapshot_20160505"
2016-01-12 09:46:10 +00:00
runDir = 'run'
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,
'mcVersion': project.minecraft.version,
2016-01-12 09:46:10 +00:00
'forgeVersion': project.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'))
}
}
2016-01-12 09:46:10 +00:00
reobf {
shadowJar {
mappingType = 'SEARGE'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
artifacts {
archives deobfJar
}