aboutsummaryrefslogtreecommitdiff
path: root/spark-fabric/build.gradle
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-11-07 13:48:42 +0000
committerLuck <git@lucko.me>2020-11-07 13:48:42 +0000
commit70a468e114316a98f6d7f7e91afa8d50639762c9 (patch)
treedbf86ccd40170b73c1dc256233d21bcf9783aaa5 /spark-fabric/build.gradle
parent91c75536a3085378467a83e0cfb03d49c72e78cf (diff)
downloadspark-70a468e114316a98f6d7f7e91afa8d50639762c9.tar.gz
spark-70a468e114316a98f6d7f7e91afa8d50639762c9.tar.bz2
spark-70a468e114316a98f6d7f7e91afa8d50639762c9.zip
Update to 1.16.4
Diffstat (limited to 'spark-fabric/build.gradle')
-rw-r--r--spark-fabric/build.gradle31
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'
}
}