Last time fixing the mcmod.info file
This commit is contained in:
parent
fbe5bfd915
commit
6ce5bb3063
1 changed files with 17 additions and 0 deletions
17
build.gradle
17
build.gradle
|
@ -106,6 +106,23 @@ dependencies {
|
||||||
compile "com.github.azanor:baubles:1.0.1.10:deobf@jar"
|
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) {
|
task sourceJar(type: Jar) {
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
appendix = 'src'
|
appendix = 'src'
|
||||||
|
|
Loading…
Add table
Reference in a new issue