aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-10-06 20:40:09 +0200
committerLinnea Gräf <nea@nea.moe>2024-08-08 12:50:21 +0200
commit80ef02479b4119a5a4b5e99bf05bd948170bd5b3 (patch)
tree0caa3553615f4f0570297d90b0e7c25a41819faf /build.gradle.kts
parentc1dabe37d8b43d90a682edde797df9b278ec4a47 (diff)
downloadforge1.8.9template-kotlin.tar.gz
forge1.8.9template-kotlin.tar.bz2
forge1.8.9template-kotlin.zip
Add kotlin to templatekotlin
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 686fe0f..963e8df 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -6,6 +6,7 @@ plugins {
id("gg.essential.loom") version "0.10.0.+"
id("dev.architectury.architectury-pack200") version "0.1.3"
id("com.github.johnrengelman.shadow") version "8.1.1"
+ kotlin("jvm") version "2.0.0"
}
//Constants:
@@ -56,8 +57,14 @@ loom {
}
}
+tasks.compileJava {
+ dependsOn(tasks.processResources)
+}
+
sourceSets.main {
output.setResourcesDir(sourceSets.main.flatMap { it.java.classesDirectory })
+ java.srcDir(layout.projectDirectory.dir("src/main/kotlin"))
+ kotlin.destinationDirectory.set(java.destinationDirectory)
}
// Dependencies:
@@ -78,6 +85,8 @@ dependencies {
mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9")
forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9")
+ shadowImpl(kotlin("stdlib-jdk8"))
+
// If you don't want mixins, remove these lines
shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
isTransitive = false