Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
68c3206
Drop 1.21.11 & add 26.1.2
0xar-ds Aug 20, 2026
dcc13c7
Bump gradle ver
0xar-ds Aug 22, 2026
0b45a08
Bump kotlin ver
0xar-ds Aug 22, 2026
17200b3
Add 26.1.2 vers
0xar-ds Aug 22, 2026
2423820
Bump loom & update build fn calls per the new api
0xar-ds Aug 22, 2026
88f9916
Bump fabric loader ver
0xar-ds Aug 22, 2026
3c07e03
Specify target jvm/runtimes & reorder tasks declarations
0xar-ds Aug 22, 2026
fce0391
Bump mod publish plugin
0xar-ds Aug 22, 2026
06c641f
Bump stonecutter
0xar-ds Aug 23, 2026
23e2824
Bump loombok
0xar-ds Aug 22, 2026
a796695
Bump apache vers
0xar-ds Aug 23, 2026
60f5808
Bump asm vers for java 25
0xar-ds Aug 23, 2026
f11aff7
Handle migrations
0xar-ds Aug 23, 2026
33d9caf
Yield onto ItemStackTemplates
0xar-ds Aug 23, 2026
114c05a
Move renderer registry' to module system
0xar-ds Sep 1, 2026
90d2ded
Use SkyblockAPI's CurrencyAPI for purse retrieving
0xar-ds May 22, 2026
b17bf74
Have each concrete SignInputHelper implement their AmountStrategy::Ma…
0xar-ds May 22, 2026
19f8808
Properly count amount of items fillable to the players inventory per …
0xar-ds May 22, 2026
b15f139
Fix copy pasted #getButtonItemText
0xar-ds May 22, 2026
48ca013
Memoize input resolution rather than to compute it for every consumin…
0xar-ds May 22, 2026
5bb8a8a
Reset state upon sign handled
0xar-ds May 22, 2026
a1aba4a
Standard event subscription for SignManagers' Queue Dispatcher
0xar-ds Sep 5, 2026
d53f804
Drop imports left unused by the helper refactor
mkram17 Sep 6, 2026
fcb27c1
Expire queued sign handlers instead of clearing them on container close
mkram17 Sep 6, 2026
7451946
Do not memoize an input resolution that failed
mkram17 Sep 6, 2026
0f92d54
Merge remote-tracking branch 'origin/v1.0.0' into refactor/input-help…
mkram17 Sep 6, 2026
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
133 changes: 78 additions & 55 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("fabric-loom") version "1.15-SNAPSHOT"
id("net.fabricmc.fabric-loom") version "1.17.19"
`maven-publish`
java
id("me.modmuss50.mod-publish-plugin") version "0.8.4"
id("me.modmuss50.mod-publish-plugin") version "2.0.0"
id("org.jetbrains.kotlin.jvm") version "2.4.10"
id("com.gradleup.shadow") version "9.2.2"
java
}

base {
Expand Down Expand Up @@ -65,6 +68,7 @@ repositories {
class ModDependencies {
operator fun get(name: String) = property("deps.$name").toString()
}

val deps = ModDependencies()
val mcVersion = stonecutter.current.version
val maxMcVersion = deps["core.maxMcVersion"]
Expand All @@ -84,6 +88,7 @@ val owoLibVersion = deps["owo_version"]
val resourcefulConfigVersion = deps["resourcefulconfig_version"]
val autoUpdateVersion = deps["autoupdate_version"]
val skyblockerVersion = deps["skyblocker_version"]

group = property("maven_group")!!
val versionNumber = property("mod_version").toString().trim()
val releaseChannel = property("mod_release_channel").toString().trim().ifEmpty { "stable" }.lowercase()
Expand All @@ -104,26 +109,26 @@ val releaseLabel = "$versionNumber-$releaseChannel$prereleaseSuffix"
version = "$releaseLabel+mc$mcVersion"

dependencies {
// Mojang Minecraft dependency (no mappings required for 26.1+)
minecraft("com.mojang:minecraft:${mcVersion}")
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc:fabric-loader:${deps["fabricLoaderVersion"]}")

modImplementation("net.fabricmc.fabric-api:fabric-api:${deps["fabric_api"]}")
implementation("net.fabricmc:fabric-loader:${deps["fabricLoaderVersion"]}")
implementation("net.fabricmc.fabric-api:fabric-api:${deps["fabric_api"]}")

modLocalRuntime("maven.modrinth:hypixel-mod-api:$hypixelModApiVersion")
modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:$devAuthVersion")
localRuntime("maven.modrinth:hypixel-mod-api:$hypixelModApiVersion")
runtimeOnly("me.djtheredstoner:DevAuth-fabric:$devAuthVersion")

modImplementation("tech.thatgravyboat:skyblock-api:${deps["skyblock_api_version"]}") {
implementation("tech.thatgravyboat:skyblock-api:${deps["skyblock_api_version"]}") {
capabilities { requireCapability("tech.thatgravyboat:skyblock-api-${deps["skyblock_api_platform"]}") }
}
include("tech.thatgravyboat:skyblock-api:${deps["skyblock_api_version"]}") {
capabilities { requireCapability("tech.thatgravyboat:skyblock-api-${deps["skyblock_api_platform"]}-remapped") }
capabilities { requireCapability("tech.thatgravyboat:skyblock-api-${deps["skyblock_api_platform"]}") }
}

compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
modImplementation("net.fabricmc:fabric-language-kotlin:$fabricKotlinVersion")
implementation("net.fabricmc:fabric-language-kotlin:$fabricKotlinVersion")

modImplementation("net.hypixel:hypixel-api-transport-apache:$hypixelApiVersion")
implementation("net.hypixel:hypixel-api-transport-apache:$hypixelApiVersion")
include("net.hypixel:hypixel-api-transport-apache:$hypixelApiVersion")
include("net.hypixel:hypixel-api-core:$hypixelApiVersion")

Expand All @@ -133,28 +138,26 @@ dependencies {
include("commons-logging:commons-logging:$commonsLoggingVersion")
include("commons-codec:commons-codec:$commonsCodecVersion")

// Config lib and settings screen
modImplementation("com.teamresourceful.resourcefulconfig:resourcefulconfig-fabric-$resourcefulConfigVersion")

modCompileOnly("com.terraformersmc:modmenu:$modMenuVersion")
implementation("com.teamresourceful.resourcefulconfig:resourcefulconfig-fabric-$resourcefulConfigVersion")
compileOnly("com.terraformersmc:modmenu:$modMenuVersion")

// Project Lombok
compileOnly("org.projectlombok:lombok:$lombokVersion")
annotationProcessor("org.projectlombok:lombok:$lombokVersion")

testCompileOnly("org.projectlombok:lombok:$lombokVersion")
testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion")
// Mixin Constraints

include(implementation("com.moulberry:mixinconstraints:$mixinConstraintsVersion")!!)

//gson extras for easy type adapters
implementation("org.danilopianini:gson-extras:$gsonExtrasVersion")
include("org.danilopianini:gson-extras:$gsonExtrasVersion")

// Skyblocker for compatibility
modCompileOnly("maven.modrinth:skyblocker-liap:v$skyblockerVersion")
compileOnly("maven.modrinth:skyblocker-liap:v$skyblockerVersion")

// Owo Lib for lang features
modImplementation("io.wispforest:owo-lib:$owoLibVersion")
implementation("io.wispforest:owo-lib:$owoLibVersion")

// Auto Update Library
implementation("moe.nea:libautoupdate:$autoUpdateVersion")
Expand Down Expand Up @@ -182,55 +185,75 @@ sourceSets {
}
}

tasks {
classes {
dependsOn(buildtimeInjectionTask)
}
tasks.withType<JavaCompile>().configureEach {
options.release = 25
}

processResources {
inputs.property("version", project.version)
inputs.property("mcVersion", mcVersion)
inputs.property("minor_update_notes", rootProject.property("minor_update_notes") as String)

filesMatching("fabric.mod.json") {
expand(mapOf(
"version" to project.version,
"mod_version" to rootProject.property("mod_version"),
"mcVersion" to mcVersion,
"maxMcVersion" to maxMcVersion,
"minor_update_notes" to rootProject.property("minor_update_notes")
))
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_25
}
}

jar {
from("LICENSE"){
rename { "${it}_${archiveBaseName.get()}" }
}
java {
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25

toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}

shadowJar {
configurations = listOf(project.configurations.shadow.get())
tasks.processResources {
inputs.property("version", project.version)
inputs.property("mcVersion", mcVersion)
inputs.property("minor_update_notes", rootProject.property("minor_update_notes") as String)

filesMatching("fabric.mod.json") {
expand(mapOf(
"version" to project.version,
"mod_version" to rootProject.property("mod_version"),
"mcVersion" to mcVersion,
"maxMcVersion" to maxMcVersion,
"minor_update_notes" to rootProject.property("minor_update_notes")
))
}
remapJar {
dependsOn(shadowJar)
inputFile.set(shadowJar.get().archiveFile)
}

tasks.classes {
dependsOn(buildtimeInjectionTask)
}

tasks.jar {
enabled = false
}

tasks.shadowJar {
archiveClassifier.set("")

configurations = listOf(project.configurations.shadow.get())

from("LICENSE") {
rename { "${it}_${archiveBaseName.get()}" }
}
}

tasks.assemble {
dependsOn(tasks.shadowJar)
}

loom {
runConfigs.all {
ideConfigGenerated(true) // Run configurations are not created for subprojects by default
runDir = "../../run" // Use a shared run folder and create separate worlds
generateRunConfig.set(true)
runDirectory.set(layout.projectDirectory.dir("../../run"))
}
}
java {
withSourcesJar()
}

publishMods {
file = tasks.remapJar.get().archiveFile
additionalFiles.from(tasks.remapSourcesJar.get().archiveFile)
version = project.version.toString()
file.set(tasks.shadowJar.get().archiveFile)
version.set(project.version.toString())

type = when (releaseChannel) {
"alpha" -> ALPHA
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ repositories {

dependencies {
implementation(gradleApi())
implementation("org.ow2.asm:asm:9.6")
implementation("org.ow2.asm:asm-tree:9.6")
implementation("org.ow2.asm:asm:9.10.1")
implementation("org.ow2.asm:asm-tree:9.10.1")
}
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.parallel=true
org.gradle.caching=true
org.gradle.caching.debug=false

fabric_kotlin_version=1.13.1+kotlin.2.1.10
fabric_kotlin_version=1.13.10+kotlin.2.3.20

mod_version=1.0.0
# Allowed: stable, beta, alpha
Expand All @@ -18,9 +18,9 @@ deps.devauth_version=1.2.1
deps.hypixel_api_version=4.4
deps.apache_httpclient_version=4.5.14
deps.apache_httpcore_version=4.4.16
deps.commons_logging_version=1.2
deps.commons_codec_version=1.16.0
deps.lombok_version=1.18.36
deps.commons_logging_version=1.4.0
deps.commons_codec_version=1.22.1
deps.lombok_version=1.18.40
deps.mixinconstraints_version=1.0.8
deps.gson_extras_version=3.3.0
deps.autoupdate_version=1.3.1
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions gradlew

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

35 changes: 12 additions & 23 deletions gradlew.bat

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

8 changes: 4 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ pluginManagement {
}

plugins {
id("dev.kikugie.stonecutter") version "0.8.2"
id("dev.kikugie.stonecutter") version "0.9.7"
}

stonecutter {
kotlinController = true
centralScript = "build.gradle.kts"
create(rootProject){
versions("1.21.11")
vcsVersion = "1.21.11"
create(rootProject) {
versions("26.1.2")
vcsVersion = "26.1.2"
}
}

Expand Down
Loading
Loading