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 {
|
|
|
|
name = 'minecrell'
|
|
|
|
url = 'http://repo.minecrell.net/releases'
|
|
|
|
}
|
|
|
|
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/"}
|
2016-04-02 06:06:24 +02:00
|
|
|
maven {url = "http://repo.minecrell.net/snapshots"}
|
2016-12-26 08:42:33 +01:00
|
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
|
|
maven { url = "http://repo.minecrell.net/releases" }
|
|
|
|
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.minecrell:VanillaGradle:2.0.3_1'
|
2016-06-16 12:25:21 +02:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
2016-04-02 06:06:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-26 08:42:33 +01:00
|
|
|
plugins {
|
|
|
|
id 'org.spongepowered.plugin' version '0.6'
|
|
|
|
}
|
|
|
|
|
2016-04-02 06:06:24 +02:00
|
|
|
apply plugin: 'net.minecrell.vanilla.server.library'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
repositories {
|
2017-02-18 10:49:18 +01:00
|
|
|
flatDir {dirs 'lib'}
|
2016-04-02 06:06:24 +02:00
|
|
|
maven {
|
|
|
|
name = 'forge'
|
|
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Sponge"
|
|
|
|
url = "https://repo.spongepowered.org/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Sponge Metrics"
|
|
|
|
url = "http://repo.mcstats.org/content/repositories/releases/"
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 10:49:18 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':core')
|
|
|
|
compile 'org.spongepowered:spongeapi:6.0.0-SNAPSHOT'
|
|
|
|
compile 'org.spongepowered:mixin:0.6.1-SNAPSHOT'
|
|
|
|
compile 'com.sk89q.worldedit:worldedit-sponge:6.1.7-SNAPSHOT'
|
|
|
|
compile name: 'worldedit-core-6.1.7-SNAPSHOT-dist'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
2016-04-02 06:06:24 +02:00
|
|
|
minecraft {
|
2016-12-26 10:08:24 +01:00
|
|
|
version = "1.11"
|
|
|
|
mappings = "snapshot_20161116"
|
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 {
|
2017-02-18 10:49:18 +01:00
|
|
|
include(dependency(':core'))
|
2016-12-26 08:42:33 +01:00
|
|
|
include(dependency('com.github.luben:zstd-jni:1.1.1'))
|
2017-02-16 10:32:16 +01:00
|
|
|
include(dependency('org.javassist:javassist:3.22.0-CR1'))
|
2017-01-28 23:25:53 +01:00
|
|
|
include(dependency('co.aikar:fastutil-lite:1.0'))
|
2017-02-18 10:49:18 +01:00
|
|
|
include(dependency(name: 'worldedit-core-6.1.7-SNAPSHOT-dist'))
|
|
|
|
include(dependency('com.sk89q.worldedit:worldedit-sponge:6.1.7-SNAPSHOT'))
|
2016-04-23 22:41:07 +02:00
|
|
|
include(dependency('org.yaml:snakeyaml:1.16'))
|
2016-04-02 06:06:24 +02:00
|
|
|
}
|
2016-05-13 10:19:04 +02:00
|
|
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
2016-04-02 06:06:24 +02:00
|
|
|
destinationDir = file '../target'
|
|
|
|
}
|
|
|
|
shadowJar.doLast {
|
|
|
|
task ->
|
|
|
|
ant.checksum file: task.archivePath
|
|
|
|
}
|
|
|
|
|
2016-04-23 22:41:07 +02:00
|
|
|
|
2016-04-02 06:06:24 +02:00
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappingType = 'SEARGE'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|