Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("fabric-loom").version("1.7-SNAPSHOT").apply(false)
id("fabric-loom").version("1.15-SNAPSHOT").apply(false)
}

subprojects {
Expand All @@ -22,6 +22,8 @@ val mod_version: String by project

val buildAll = tasks.create("buildAll") {
dependsOn(":v1_21_4:build")
dependsOn(":v1_21_11:build")
// ...
// This isn't working.... you still have to run each build individually
/* tasks.findByName(":v1_19_3:build")?.mustRunAfter(":v1_19_4:build")
tasks.findByName(":v1_19:build")?.mustRunAfter(":v1_19_3:build")
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ org.gradle.parallel=false
mod_version=3.4.0
maven_group=net.fabricmc
archives_base_name=litematica-printer
org.gradle.java.home=C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.11.10-hotspot
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ pluginManagement {
}
}
include 'v1_21_4'

include(":v1_21_11")
project(":v1_21_11").projectDir = file("v1_21_11")
68 changes: 68 additions & 0 deletions v1_21_11/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import net.fabricmc.loom.task.RemapJarTask

plugins {
id("maven-publish")
}

java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

val archives_base_name: String by project

//val malilib_version: String by project
//val litematica_projectid: String by project
//val litematica_fileid: String by project

val mod_version: String by project
val minecraft_version: String by project
val yarn_mappings: String by project
val loader_version: String by project
val fabric_version: String by project

dependencies {
// implementation(project(":common"))
minecraft("com.mojang:minecraft:${minecraft_version}")
mappings("net.fabricmc:yarn:${yarn_mappings}:v2")
annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.4.1")?.let { implementation(it)?.let { include(it) } }
modImplementation("net.fabricmc:fabric-loader:${loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${fabric_version}")
modImplementation("com.github.sakura-ryoko:malilib:1.21.11-0.27.8")
//Replace masa litematica with sakura-ryoko fork
modImplementation("com.github.sakura-ryoko:litematica:1.21.11-0.26.3") {
exclude(group = "fi.dy.masa.malilib")
}
modImplementation("com.ptsmods:devlogin:3.5")
}

repositories {
maven("https://masa.dy.fi/maven")
maven("https://www.cursemaven.com")
maven("https://jitpack.io")
maven("https://maven.fallenbreath.me/releases")
}

// Process resources
tasks.withType<ProcessResources> {
inputs.property("version", mod_version)

filesMatching("fabric.mod.json") {
expand(mapOf("version" to mod_version))
}
}

tasks.build {
finalizedBy("renameJar")
}

tasks.create("renameJar") {
val remapJar = tasks.getByName<RemapJarTask>("remapJar")
val jarFile = remapJar.archiveFile.get().asFile

doLast {
val targetFile = File(jarFile.parent, "$archives_base_name-$mod_version-mc$minecraft_version.jar")
println("Renaming ${jarFile.absolutePath} to ${targetFile.absolutePath}")
targetFile.delete()
jarFile.renameTo(targetFile)
}
}

14 changes: 14 additions & 0 deletions v1_21_11/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
# https://masa.dy.fi/maven/fi/dy/masa/malilib/
#malilib_version=1.20.4:0.18.1
# https://www.curseforge.com/minecraft/mc-mods/litematica/files
#litematica_fileid=5170070
#litematica_projectid=308892
# Fabric Properties: https://fabricmc.net/develop/
minecraft_version=1.21.11
yarn_mappings=1.21.11+build.4
loader_version=0.18.1

# Fabric API
fabric_version=0.139.5+1.21.11
Binary file added v1_21_11/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions v1_21_11/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
244 changes: 244 additions & 0 deletions v1_21_11/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading