Skip to content

Commit 5a927a5

Browse files
committed
Fix neo not running
1 parent f79a05c commit 5a927a5

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.2.0" apply false
2+
kotlin("jvm") version "2.1.21" apply false
33
}
44

55
subprojects {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2020
loaderVersion=0.16.14
2121
loomVersion=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
2525
fabricVersion=0.128.1+1.21.6

neo/build.gradle.kts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
3148
base {
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:

0 commit comments

Comments
 (0)