diff --git a/fabric-1.14.4/build.gradle b/fabric-1.14.4/build.gradle index d14a8a05..f5733ef5 100644 --- a/fabric-1.14.4/build.gradle +++ b/fabric-1.14.4/build.gradle @@ -41,16 +41,9 @@ dependencies { } processResources { - inputs.property "version", project.version - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is diff --git a/fabric-1.15.2/build.gradle b/fabric-1.15.2/build.gradle index d14a8a05..f5733ef5 100644 --- a/fabric-1.15.2/build.gradle +++ b/fabric-1.15.2/build.gradle @@ -41,16 +41,9 @@ dependencies { } processResources { - inputs.property "version", project.version - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is diff --git a/fabric-1.16.1/build.gradle b/fabric-1.16.1/build.gradle index d14a8a05..f5733ef5 100644 --- a/fabric-1.16.1/build.gradle +++ b/fabric-1.16.1/build.gradle @@ -41,16 +41,9 @@ dependencies { } processResources { - inputs.property "version", project.version - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is diff --git a/fabric-1.16.2/build.gradle b/fabric-1.16.2/build.gradle index d14a8a05..f5733ef5 100644 --- a/fabric-1.16.2/build.gradle +++ b/fabric-1.16.2/build.gradle @@ -41,16 +41,9 @@ dependencies { } processResources { - inputs.property "version", project.version - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is diff --git a/fabric-1.16.4/build.gradle b/fabric-1.16.4/build.gradle index d14a8a05..f5733ef5 100644 --- a/fabric-1.16.4/build.gradle +++ b/fabric-1.16.4/build.gradle @@ -41,16 +41,9 @@ dependencies { } processResources { - inputs.property "version", project.version - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is