···11plugins {
22 id 'fabric-loom' version "${loom_version}"
33 id 'maven-publish'
44+ id 'org.jetbrains.kotlin.jvm'
45}
5667version = project.mod_version
···1112}
12131314repositories {
1414- // Add repositories to retrieve artifacts from in here.
1515+ mavenCentral()
1616+ // Add repositories to retrieve artifacts from in here.
1517 // You should only use this when depending on other mods because
1618 // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
1719 // See https://docs.gradle.org/current/userguide/declaring_repositories.html
···3739 modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
3840 // Fabric API. This is technically optional, but you probably want it anyway.
3941 modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
4242+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
4043}
41444245processResources {
···5760 // If you remove this line, sources will not be generated.
5861 withSourcesJar()
59626060- sourceCompatibility = JavaVersion.VERSION_21
6161- targetCompatibility = JavaVersion.VERSION_21
6263}
63646465jar {
···8586 // The repositories here will be used for publishing your artifact, not for
8687 // retrieving dependencies.
8788 }
8989+}
9090+kotlin {
9191+ jvmToolchain(21)
8892}
+6
settings.gradle
···77 mavenCentral()
88 gradlePluginPortal()
99 }
1010+ plugins {
1111+ id 'org.jetbrains.kotlin.jvm' version '2.2.0'
1212+ }
1313+}
1414+plugins {
1515+ id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
1016}