mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-03 01:20:02 +01:00
00c685cd93
add git revision to jar fix fixlighting fix fallback bukkit queue (currently not stable for forge/sponge)
78 lines
1.8 KiB
Groovy
78 lines
1.8 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
name = "forge"
|
|
url = "http://files.minecraftforge.net/maven"
|
|
}
|
|
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/"}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'forge'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile 'org.mcstats.sponge:metrics:R8-SNAPSHOT'
|
|
compile 'com.sk89q.worldedit:worldedit-forge-mc1.7.10:6.1.1-20151030.011615-19'
|
|
compile 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
|
}
|
|
|
|
sourceCompatibility = 1.7
|
|
targetCompatibility = 1.7
|
|
|
|
repositories {
|
|
maven {
|
|
name = 'forge'
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
}
|
|
}
|
|
minecraft {
|
|
version = "10.13.4.1614-1.7.10"
|
|
runDir = 'run'
|
|
}
|
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
|
|
|
|
processResources {
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
expand 'version': project.version,
|
|
'mcVersion': project.minecraft.version
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'org.yaml.snakeyaml', 'com.boydti.fawe.yaml'
|
|
dependencies {
|
|
include(dependency(':core'))
|
|
include(dependency('org.yaml:snakeyaml:1.16'))
|
|
}
|
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
|
destinationDir = file '../target'
|
|
}
|
|
shadowJar.doLast {
|
|
task ->
|
|
ant.checksum file: task.archivePath
|
|
}
|
|
|
|
|
|
reobf.reobf(shadowJar) { spec ->
|
|
spec.classpath = sourceSets.main.compileClasspath;
|
|
}
|
|
|
|
task deobfJar(type: Jar) {
|
|
from sourceSets.main.output
|
|
classifier = 'dev'
|
|
}
|
|
|
|
artifacts {
|
|
archives deobfJar
|
|
}
|
|
|
|
build.dependsOn(shadowJar)
|