forge-*: fix resource handling on Gradle 7

This commit is contained in:
Kosma Moczek 2021-06-27 15:07:33 +02:00
parent 70825f3a18
commit 3d1e3053e1
8 changed files with 8 additions and 88 deletions

View file

@ -35,23 +35,13 @@ dependencies {
processResources
{
inputs.property "version", project.version + '-' + project.ext.buildNumber
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'META-INF/mods.toml'
filesMatching('mods.toml') {
// replace version and mcversion
expand(
version: project.version + '-' + project.ext.buildNumber,
mcversion: "1.15.2"
)
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'META-INF/mods.toml'
}
}
shadowJar {