aboutsummaryrefslogtreecommitdiffstats
path: root/Fabric/build.gradle
diff options
context:
space:
mode:
authorAizistral2026-01-25 00:59:03 +0100
committerAizistral2026-01-25 00:59:03 +0100
commitce0695d6f9ad0ba90f8798214f9ee5f92e7fb2da (patch)
tree984afd103fbcde2a32c6358dfe56fb7fb904cd05 /Fabric/build.gradle
Time to snort some caffeine baby 🚀 🚀 🚀
Diffstat (limited to 'Fabric/build.gradle')
-rw-r--r--Fabric/build.gradle56
1 files changed, 56 insertions, 0 deletions
diff --git a/Fabric/build.gradle b/Fabric/build.gradle
new file mode 100644
index 0000000..62742c5
--- /dev/null
+++ b/Fabric/build.gradle
@@ -0,0 +1,56 @@
+plugins {
+ id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
+ id 'maven-publish'
+}
+
+version = project.mod_version
+group = project.maven_group
+
+base {
+ archivesName = project.archives_base_name
+}
+
+repositories {
+ // Add repositories to retrieve artifacts from in here.
+ // You should only use this when depending on other mods because
+ // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
+ // See https://docs.gradle.org/current/userguide/declaring_repositories.html
+ // for more information about repositories.
+}
+
+dependencies {
+ // To change the versions see the gradle.properties file
+ minecraft "com.mojang:minecraft:${project.minecraft_version}"
+ mappings loom.officialMojangMappings()
+ modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
+
+ // Fabric API. This is technically optional, but you probably want it anyway.
+ modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
+
+}
+
+processResources {
+ inputs.property "version", project.version
+
+ filesMatching("fabric.mod.json") {
+ expand "version": inputs.properties.version
+ }
+}
+
+tasks.withType(JavaCompile).configureEach {
+ it.options.release = 8
+}
+
+java {
+ // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
+ // if it is present.
+ // If you remove this line, sources will not be generated.
+ withSourcesJar()
+
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+}
+
+jar {
+ inputs.property "archivesName", project.base.archivesName
+} \ No newline at end of file