Trying Something New

This commit is contained in:
Sekwah 2018-06-06 23:00:58 +01:00 committed by Sekwah
parent 5f91430531
commit cf8addd5fa

View File

@ -443,4 +443,24 @@ task runJar() << {
jvmArgs "-DIReallyKnowWhatIAmDoingISwear=true"
workingDir "${System.env.SPIGOT_LOC}"
}
}
}
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'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}