Last time fixing the mcmod.info file

This commit is contained in:
modmuss50 2015-06-23 23:41:03 +01:00
parent fbe5bfd915
commit 6ce5bb3063

View file

@ -106,6 +106,23 @@ dependencies {
compile "com.github.azanor:baubles:1.0.1.10:deobf@jar"
}
processResources
{
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
// ${version} are the exact strings being replaced
expand '@MODVERSION@':project.version
}
// copy everything else, that's not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
appendix = 'src'