FastAsyncWorldedit/forge1710/build.gradle

81 lines
1.9 KiB
Groovy
Raw Normal View History

2016-04-02 06:06:24 +02:00
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
2016-04-23 22:41:07 +02:00
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/"}
2016-04-02 06:06:24 +02:00
}
dependencies {
2016-04-23 22:41:07 +02:00
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
2016-04-02 06:06:24 +02:00
}
}
2016-04-23 22:41:07 +02:00
apply plugin: 'forge'
2016-04-02 06:06:24 +02:00
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile project(':core')
2016-04-23 22:41:07 +02:00
compile 'com.sk89q.worldedit:worldedit-forge-mc1.7.10:6.1.1-20151030.011615-19'
compile 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
2016-04-02 06:06:24 +02:00
}
2016-04-23 22:41:07 +02:00
sourceCompatibility = 1.7
targetCompatibility = 1.7
2016-04-02 06:06:24 +02:00
repositories {
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
}
minecraft {
2016-04-23 22:41:07 +02:00
version = "10.13.4.1614-1.7.10"
2016-04-02 06:06:24 +02:00
runDir = 'run'
}
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
processResources {
from(sourceSets.main.resources.srcDirs) {
expand 'version': project.version,
'mcVersion': project.minecraft.version
2016-04-23 22:41:07 +02:00
exclude 'mcmod.info'
2016-04-02 06:06:24 +02:00
}
}
2016-04-14 10:07:51 +02:00
2016-04-02 06:06:24 +02:00
shadowJar {
2016-04-23 22:41:07 +02:00
relocate 'org.yaml.snakeyaml', 'com.boydti.fawe.yaml'
2016-04-02 06:06:24 +02:00
dependencies {
include(dependency('com.github.luben:zstd-jni:1.1.1'))
2016-04-02 06:06:24 +02:00
include(dependency(':core'))
2016-04-23 22:41:07 +02:00
include(dependency('org.yaml:snakeyaml:1.16'))
2016-04-02 06:06:24 +02:00
}
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
2016-04-02 06:06:24 +02:00
destinationDir = file '../target'
2016-12-27 11:56:37 +01:00
manifest {
attributes("Main-Class": "com.boydti.fawe.installer.InstallerFrame")
}
2016-04-02 06:06:24 +02:00
}
shadowJar.doLast {
task ->
ant.checksum file: task.archivePath
}
2016-04-23 22:41:07 +02:00
reobf.reobf(shadowJar) { spec ->
spec.classpath = sourceSets.main.compileClasspath;
2016-04-02 06:06:24 +02:00
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
2016-04-23 22:41:07 +02:00
artifacts {
archives deobfJar
}
2016-04-02 06:06:24 +02:00
build.dependsOn(shadowJar)