mirror of https://github.com/webbukkit/dynmap.git
forge-*: fix resource handling on Gradle 7
This commit is contained in:
parent
70825f3a18
commit
3d1e3053e1
|
@ -37,23 +37,13 @@ project.archivesBaseName = "${project.archivesBaseName}-forge-1.13.2"
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.13.2"
|
mcversion: "1.13.2"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.14.4"
|
mcversion: "1.14.4"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.15.2"
|
mcversion: "1.15.2"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.16.1"
|
mcversion: "1.16.1"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.16.2"
|
mcversion: "1.16.2"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.16.3"
|
mcversion: "1.16.3"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.16.4"
|
mcversion: "1.16.4"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
|
@ -35,23 +35,13 @@ dependencies {
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
filesMatching('mods.toml') {
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'META-INF/mods.toml'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
version: project.version + '-' + project.ext.buildNumber,
|
||||||
mcversion: "1.16.5"
|
mcversion: "1.16.5"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'META-INF/mods.toml'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
Loading…
Reference in New Issue