Fix version not being set in the mod.json + some clean up

This commit is contained in:
modmuss50 2019-08-06 23:42:25 +01:00
parent e1112a5cff
commit e4136f547d
4 changed files with 12 additions and 53 deletions

View file

@ -101,29 +101,26 @@ dependencies {
modCompile (rcVersion)
}
include rcVersion
//TODO enable this again at somepoint
//include rcVersion
compile 'org.checkerframework:checker-qual:2.10.0'
compileOnly "com.google.code.findbugs:jsr305:+"
}
processResources{
inputs.property 'version', project.version
inputs.property 'mcversion', '1.14'
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include 'META_INF/mods.toml'
expand 'version':project.version, 'mcversion': '1.14'
}
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'META_INF/mods.toml'
}
rename '(.+_at.cfg)', 'META-INF/$1'
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
jar {
exclude "**/*.psd"
classifier = 'universal'