diff options
Diffstat (limited to 'spark-fabric/build.gradle')
-rw-r--r-- | spark-fabric/build.gradle | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/spark-fabric/build.gradle b/spark-fabric/build.gradle index a2592ed..2ae99f6 100644 --- a/spark-fabric/build.gradle +++ b/spark-fabric/build.gradle @@ -1,7 +1,7 @@ import net.fabricmc.loom.task.RemapJarTask plugins { - id 'fabric-loom' version '0.4-SNAPSHOT' + id 'fabric-loom' version '0.5-SNAPSHOT' id 'com.github.johnrengelman.shadow' version '4.0.1' } @@ -12,24 +12,37 @@ configurations { dependencies { // https://modmuss50.me/fabric.html - minecraft "com.mojang:minecraft:1.16.2" - mappings "net.fabricmc:yarn:1.16.2+build.47:v2" - modCompile "net.fabricmc:fabric-loader:0.9.3+build.207" - modCompile "net.fabricmc.fabric-api:fabric-api:0.20.1+build.401-1.16" + minecraft 'com.mojang:minecraft:1.16.4' + mappings 'net.fabricmc:yarn:1.16.4+build.6:v2' + modCompile 'net.fabricmc:fabric-loader:0.10.6+build.214' + + Set<String> apiModules = [ + "fabric-api-base", + "fabric-command-api-v1", + "fabric-lifecycle-events-v1" + ] + + // Add each module as a dependency + apiModules.forEach { + modImplementation(fabricApi.module(it, '0.25.1+build.416-1.16')) + } shade project(':spark-common') } processResources { - inputs.property "version", project.version + inputs.property 'version', project.version from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" - expand "pluginVersion": project.pluginVersion, "pluginDescription": project.pluginDescription + include 'fabric.mod.json' + expand ( + 'pluginVersion': project.pluginVersion, + 'pluginDescription': project.pluginDescription + ) } from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" + exclude 'fabric.mod.json' } } |