Skip to content

Commit

Permalink
Add dependencies appropriate for 1.8.9 & 1.12.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jun 27, 2024
1 parent 1906b10 commit 1e6c96f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import dev.deftu.gradle.utils.MinecraftVersion
import dev.deftu.gradle.utils.includeOrShade

plugins {
java
Expand Down Expand Up @@ -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")!!)
}
}

Expand Down

0 comments on commit 1e6c96f

Please sign in to comment.