PlotSquared/Sponge/build.gradle

77 lines
1.7 KiB
Groovy
Raw Normal View History

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"
}
2016-05-21 16:39:06 +02:00
maven {url = "http://repo.minecrell.net/releases"}
2016-02-23 05:11:28 +01:00
}
dependencies {
2016-05-21 16:39:06 +02:00
classpath 'net.minecrell:VanillaGradle:2.0.3_1'
2016-06-01 22:50:35 +02:00
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
2016-02-23 05:11:28 +01:00
}
}
apply plugin: 'net.minecrell.vanilla.server.library'
2016-02-23 05:11:28 +01:00
dependencies {
compile project(':Core')
2016-06-01 22:50:35 +02:00
compile 'org.spongepowered:spongeapi:5.0.0-SNAPSHOT'
2016-02-23 05:11:28 +01:00
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/maven"
}
}
minecraft {
2016-07-01 23:13:49 +02:00
version = "1.10.2"
mappings = "snapshot_20160629"
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-05-21 16:39:06 +02:00
//include(dependency('org.mcstats.sponge:metrics:R8-SNAPSHOT'))
2016-02-23 05:11:28 +01:00
}
2016-05-21 16:39:06 +02:00
//relocate 'org.mcstats', 'com.plotsquared.stats'
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
destinationDir = file '../target'
}
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'
}
build.dependsOn(shadowJar)