File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11plugins {
2- kotlin(" jvm" ) version " 2.2.0 " apply false
2+ kotlin(" jvm" ) version " 2.1.21 " apply false
33}
44
55subprojects {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ modDescription=Example mod description.\nNewline characters can be used and will
1919# check these on https://fabricmc.net/develop
2020loaderVersion =0.16.14
2121loomVersion =1.10-SNAPSHOT
22- fabricKotlinVersion =1.13.4 +kotlin.2.2.0
22+ fabricKotlinVersion =1.13.3 +kotlin.2.1.21
2323
2424# Fabric Dependencies
2525fabricVersion =0.128.1+1.21.6
Original file line number Diff line number Diff line change @@ -28,6 +28,23 @@ repositories {
2828 // Add here additional repositories if required by some of the dependencies below.
2929}
3030
31+ project.gradle.taskGraph.whenReady {
32+ allTasks.forEach {
33+ if (it is net.neoforged.gradle.userdev.runtime.tasks.ClasspathSerializer ) {
34+ it.doLast {
35+ val file = it.targetFile.get().asFile
36+ file.readLines().filter { line ->
37+ ! line.contains(" org.jetbrains.kotlin" )
38+ }.also { lines ->
39+ file.writeText(lines.joinToString(" \n " ))
40+ }
41+ }
42+ }
43+ }
44+
45+ }
46+
47+
3148base {
3249 archivesName = " $modId -$minecraftVersion -neoforge-$modVersion "
3350}
@@ -148,7 +165,6 @@ dependencies {
148165 // Example mod dependency using a file as dependency
149166 // implementation files("libs/coolmod-${mc_version}-${coolmod_version}.jar")
150167
151- implementation(project(" :common" ))
152168 implementation(" thedarkcolour:kotlinforforge-neoforge:$kotlinForForgeVersion " )
153169
154170 // For more info:
You can’t perform that action at this time.
0 commit comments