diff options
author | modmuss50 <modmuss50@gmail.com> | 2021-01-17 18:34:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 18:34:22 +0000 |
commit | 47097c65cede8a4200a55ad32be1d183f474b80d (patch) | |
tree | 9b42f83dbafb1d5acf1601beeaed22dc748ec1c5 /src/test/groovy/net/fabricmc/loom | |
parent | f0bb05a205ed79d714302a95ab68396b12b4e07e (diff) | |
download | architectury-loom-47097c65cede8a4200a55ad32be1d183f474b80d.tar.gz architectury-loom-47097c65cede8a4200a55ad32be1d183f474b80d.tar.bz2 architectury-loom-47097c65cede8a4200a55ad32be1d183f474b80d.zip |
Gradle 7 (and hopefully 8) support (#332)
* First pass on gradle 7 support
* Fix Gradle 8 deprecation warnings
* Add a deprecated compile constant
Diffstat (limited to 'src/test/groovy/net/fabricmc/loom')
-rw-r--r-- | src/test/groovy/net/fabricmc/loom/BuildUtils.groovy | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/test/groovy/net/fabricmc/loom/BuildUtils.groovy b/src/test/groovy/net/fabricmc/loom/BuildUtils.groovy index 9a3083d6..58fe3cfd 100644 --- a/src/test/groovy/net/fabricmc/loom/BuildUtils.groovy +++ b/src/test/groovy/net/fabricmc/loom/BuildUtils.groovy @@ -24,10 +24,10 @@ dependencies { //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:\${project.minecraft_version}" mappings ${mappingsDep} - modCompile "net.fabricmc:fabric-loader:\${project.loader_version}" + modImplementation "net.fabricmc:fabric-loader:\${project.loader_version}" // Fabric API. This is technically optional, but you probably want it anyway. - modCompile "net.fabricmc.fabric-api:fabric-api:\${project.fabric_version}" + modImplementation "net.fabricmc.fabric-api:fabric-api:\${project.fabric_version}" // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. @@ -36,14 +36,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 |