*glares at gradle* Look at me. I am the captain now.
This commit is contained in:
parent
5ca02711d4
commit
5edb2fd541
45 changed files with 718 additions and 472 deletions
56
build.gradle
Normal file
56
build.gradle
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
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'
|
||||
|
||||
version = "1.3"
|
||||
group= "com.oitsjustjose.criss_cross"
|
||||
archivesBaseName = "CrissCross-1.8.8"
|
||||
|
||||
minecraft{
|
||||
version = "1.8.8-11.15.0.1609-1.8.8"
|
||||
runDir = "run"
|
||||
|
||||
replaceIn "lib/Lib.java"
|
||||
replace "@VERSION@", project.version
|
||||
|
||||
mappings = "snapshot_20151122"
|
||||
}
|
||||
|
||||
dependencies{
|
||||
}
|
||||
|
||||
task deobfJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
classifier = 'DEV'
|
||||
}
|
||||
|
||||
artifacts{
|
||||
archives deobfJar
|
||||
}
|
||||
|
||||
processResources{
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||
}
|
||||
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue