2016-02-23 05:11:28 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2016-05-10 20:24:02 +02:00
|
|
|
mavenLocal()
|
2016-02-23 05:11:28 +01:00
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
2018-08-10 17:01:10 +02:00
|
|
|
maven { url = "http://repo.minecrell.net/releases" }
|
2016-11-26 17:55:59 +01:00
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
2016-02-23 05:11:28 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-01-25 04:51:39 +01:00
|
|
|
classpath 'gradle.plugin.net.minecrell:vanillagradle:2.2-6'
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
2016-02-23 05:11:28 +01:00
|
|
|
}
|
|
|
|
}
|
2016-02-26 13:55:21 +01:00
|
|
|
|
2016-11-26 17:55:59 +01:00
|
|
|
apply plugin: 'net.minecrell.vanillagradle.server'
|
2016-02-23 05:11:28 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':Core')
|
2018-01-25 04:51:39 +01:00
|
|
|
compile 'org.spongepowered:spongeapi:7.1.0-SNAPSHOT'
|
2016-07-17 04:51:49 +02:00
|
|
|
compile 'net.minecrell.mcstats:statslite-sponge:0.2.2'
|
|
|
|
|
2016-02-23 05:11:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
2016-07-17 04:51:49 +02:00
|
|
|
maven {
|
|
|
|
name = 'minecrell'
|
|
|
|
url = 'http://repo.minecrell.net/releases'
|
|
|
|
}
|
2016-02-23 05:11:28 +01:00
|
|
|
maven {
|
|
|
|
name = 'forge'
|
|
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Sponge"
|
|
|
|
url = "https://repo.spongepowered.org/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
minecraft {
|
2018-01-25 04:51:39 +01:00
|
|
|
version = "1.12.2"
|
|
|
|
mappings = "snapshot_20171022"
|
2016-02-23 05:11:28 +01:00
|
|
|
runDir = 'run'
|
|
|
|
}
|
|
|
|
|
|
|
|
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
expand 'version': project.version,
|
|
|
|
'mcVersion': project.minecraft.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency(':Core'))
|
2016-07-17 04:51:49 +02:00
|
|
|
include dependency('net.minecrell.mcstats:statslite-sponge')
|
2016-02-23 05:11:28 +01:00
|
|
|
}
|
2016-07-17 04:51:49 +02:00
|
|
|
relocate 'net.minecrell.mcstats', 'com.plotsquared.util.mcstats'
|
2016-02-26 13:55:21 +01:00
|
|
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
2016-02-27 11:07:42 +01:00
|
|
|
destinationDir = file '../target'
|
2016-02-26 13:55:21 +01:00
|
|
|
}
|
|
|
|
shadowJar.doLast {
|
|
|
|
task ->
|
|
|
|
ant.checksum file: task.archivePath
|
2016-02-23 05:11:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappingType = 'SEARGE'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task deobfJar(type: Jar) {
|
|
|
|
from sourceSets.main.output
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
2016-03-09 03:18:54 +01:00
|
|
|
build.dependsOn(shadowJar)
|