mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-02 08:50:17 +01:00
68 lines
1.3 KiB
Groovy
68 lines
1.3 KiB
Groovy
|
apply plugin: 'eclipse'
|
||
|
apply plugin: 'idea'
|
||
|
|
||
|
buildscript {
|
||
|
repositories {
|
||
|
jcenter()
|
||
|
maven {
|
||
|
name = "forge"
|
||
|
url = "http://files.minecraftforge.net/maven"
|
||
|
}
|
||
|
}
|
||
|
dependencies {
|
||
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
|
||
|
}
|
||
|
}
|
||
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||
|
|
||
|
dependencies {
|
||
|
compile project(':Core')
|
||
|
compile 'org.spongepowered:spongeapi:3.1.0-SNAPSHOT'
|
||
|
}
|
||
|
|
||
|
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 {
|
||
|
version = "1.8.9-11.15.1.1742"
|
||
|
mappings = "snapshot_20160204"
|
||
|
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'))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
reobf {
|
||
|
shadowJar {
|
||
|
mappingType = 'SEARGE'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
task deobfJar(type: Jar) {
|
||
|
from sourceSets.main.output
|
||
|
classifier = 'dev'
|
||
|
}
|
||
|
|
||
|
build.dependsOn(shadowJar)
|