FastAsyncWorldEdit/worldedit-sponge/build.gradle

92 Zeilen
2.1 KiB
Groovy

2016-02-02 07:28:27 +01:00
apply plugin: 'eclipse'
apply plugin: 'idea'
buildscript {
repositories {
mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "http://repo.minecrell.net/snapshots" }
2016-02-02 07:28:27 +01:00
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'net.minecrell:VanillaGradle:2.0.3-SNAPSHOT'
2016-02-02 07:28:27 +01:00
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecrell.vanilla.server.library'
2016-02-02 07:28:27 +01:00
dependencies {
compile project(':worldedit-core')
2016-03-10 03:33:20 +01:00
compile 'org.spongepowered:spongeapi:4.+'
2016-05-19 01:27:38 +02:00
compile 'ninja.leaping.configurate:configurate-hocon:3.1'
2016-02-02 07:28:27 +01:00
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
}
repositories {
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/maven"
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = "6.1.1"
ext.internalVersion = version + ";" + gitCommitHash
minecraft {
version = "1.8.9"
mappings = "stable_22"
2016-02-02 07:28:27 +01:00
runDir = 'run'
2016-02-02 21:12:54 +01:00
replaceIn "com/sk89q/worldedit/sponge/SpongeWorldEdit.java"
2016-02-02 07:28:27 +01:00
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,
'internalVersion': project.internalVersion
}
}
jar {
manifest {
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
"WorldEdit-Version": version,
"FMLAT": "worldedit_at.cfg")
}
}
shadowJar {
dependencies {
include(dependency(':worldedit-core'))
}
}
reobf {
shadowJar {
mappingType = 'SEARGE'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
artifacts {
archives deobfJar
}