From b9cdfd9d91b02fabbde89c82740c5a45b7b1805f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 5 Mar 2025 10:51:30 +0700 Subject: [PATCH] Add Caffeine Cache dependency --- build.gradle.kts | 16 +++++++++------- gradle.properties | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index abaa278cd..70ea476a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,6 +13,7 @@ val mod_id: String by project val handle_deps: String by project val use_commit_hash_in_version: String by project val handleDeps = handle_deps.toBoolean() +val caffeine_cache_version: String by project plugins { java @@ -142,14 +143,11 @@ dependencies { implementation("thedarkcolour:kotlinforforge-neoforge:$kotlin_for_forge_version") - jarJar("ru.dbotthepony.kommons:kommons:[$kommons_version,)") { setTransitive(false) } - implementation("ru.dbotthepony.kommons:kommons:[$kommons_version,)") { setTransitive(false) } + jarJar(implementation("com.github.ben-manes.caffeine:caffeine:[$caffeine_cache_version,)")!!) - jarJar("ru.dbotthepony.kommons:kommons-gson:[$kommons_version,)") { setTransitive(false) } - implementation("ru.dbotthepony.kommons:kommons-gson:[$kommons_version,)") { setTransitive(false) } - - jarJar("ru.dbotthepony.kommons:kommons-guava:[$kommons_version,)") { setTransitive(false) } - implementation("ru.dbotthepony.kommons:kommons-guava:[$kommons_version,)") { setTransitive(false) } + jarJar(implementation("ru.dbotthepony.kommons:kommons:[$kommons_version,)") { setTransitive(false) }) + jarJar(implementation("ru.dbotthepony.kommons:kommons-gson:[$kommons_version,)") { setTransitive(false) }) + jarJar(implementation("ru.dbotthepony.kommons:kommons-guava:[$kommons_version,)") { setTransitive(false) }) compileOnly("yalter.mousetweaks:MouseTweaks:2.23:api") annotationProcessor("org.spongepowered:mixin:${mixin_version}:processor") @@ -228,6 +226,10 @@ minecraft { // Log4j console level systemProperty("forge.logging.console.level", "debug") + + dependencies { + runtime("com.github.ben-manes.caffeine:caffeine:[$caffeine_cache_version,)") + } } getByName("client") { diff --git a/gradle.properties b/gradle.properties index 171915422..47fdf3e3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,6 +23,7 @@ neogradle.subsystems.parchment.minecraftVersion=1.21.1 neogradle.subsystems.parchment.mappingsVersion=2024.11.17 kommons_version=3.1.3 +caffeine_cache_version=3.1.5 jei_version=19.16.4.171 jupiter_version=5.9.2