From 1e6c96feae1ddb2ac62063d225c131b204abf6f1 Mon Sep 17 00:00:00 2001 From: Deftu Date: Thu, 27 Jun 2024 07:31:10 +0200 Subject: [PATCH] Add dependencies appropriate for 1.8.9 & 1.12.2. --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index b171eef..903c531 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ import dev.deftu.gradle.utils.MinecraftVersion +import dev.deftu.gradle.utils.includeOrShade plugins { java @@ -33,6 +34,11 @@ dependencies { if (mcData.isFabric) { modImplementation("net.fabricmc.fabric-api:fabric-api:${mcData.dependencies.fabric.fabricApiVersion}") modImplementation("net.fabricmc:fabric-language-kotlin:${mcData.dependencies.fabric.fabricLanguageKotlinVersion}") + } else if (mcData.version <= MinecraftVersion.VERSION_1_12_2) { + implementation(includeOrShade(kotlin("stdlib-jdk8"))!!) + implementation(includeOrShade("org.jetbrains.kotlin:kotlin-reflect:1.6.10")!!) + + modImplementation(includeOrShade("org.spongepowered:mixin:0.7.11-SNAPSHOT")!!) } }