Skip to content

Commit

Permalink
Improve build file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jun 27, 2024
1 parent 0c8864f commit 0f1934e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ plugins {
id("dev.deftu.gradle.tools.minecraft.releases")
}

if (mcData.isForgeLike && mcData.version >= MinecraftVersion.VERSION_1_15_2) {
toolkitLoomHelper.useKotlinForForge()
toolkitLoomHelper {
if (mcData.isForgeLike && mcData.version >= MinecraftVersion.VERSION_1_16_5) {
useKotlinForForge()
}
}

dependencies {
Expand All @@ -24,3 +26,11 @@ dependencies {
modImplementation("net.fabricmc:fabric-language-kotlin:${mcData.dependencies.fabric.fabricLanguageKotlinVersion}")
}
}

tasks {
withType<Jar> {
val buildDir = rootProject.layout.buildDirectory.asFile.get()
val jarsDir = buildDir.resolve("jars")
destinationDirectory.set(jarsDir)
}
}

0 comments on commit 0f1934e

Please sign in to comment.