@@ -37,16 +37,13 @@ val common: Configuration by configurations.creating {
3737}
3838
3939val includeLib: Configuration by configurations.creating
40- val includeMod: Configuration by configurations.creating
4140
4241fun DependencyHandlerScope.setupConfigurations () {
42+ // Please look at this before yelling at me
43+ // https://docs.architectury.dev/loom/using_libraries/
4344 includeLib.dependencies.forEach {
4445 implementation(it)
45- include(it)
46- }
47-
48- includeMod.dependencies.forEach {
49- modImplementation(it)
46+ forgeRuntimeLibrary(it) // Avoid mods not being found in dev environment
5047 include(it)
5148 }
5249}
@@ -56,14 +53,13 @@ dependencies {
5653 forge(" net.minecraftforge:forge:$forgeVersion " )
5754
5855 // Add dependencies on the required Kotlin modules.
59- includeLib(" thedarkcolour:kotlinforforge:$kotlinForgeVersion " ) { isTransitive = false }
60- includeLib(" io.github.llamalad7:mixinextras-forge:$mixinExtrasVersion " ) { isTransitive = false }
56+ includeLib(" thedarkcolour:kotlinforforge:$kotlinForgeVersion " )
57+ includeLib(" io.github.llamalad7:mixinextras-forge:$mixinExtrasVersion " )
6158 includeLib(" org.reflections:reflections:0.10.2" )
59+ includeLib(" org.javassist:javassist:3.27.0-GA" )
6260
63- // Add mods to the mod jar
64- includeMod(" thedarkcolour:kotlinforforge:$kotlinForgeVersion " ) // Both a library and a mod
65-
66- compileOnly(kotlin(" stdlib" )) // Hacky fix https://github.com/thedarkcolour/KotlinForForge/issues/93
61+ // Bugfixes
62+ compileOnly(kotlin(" stdlib" )) // Hack https://github.com/thedarkcolour/KotlinForForge/issues/93
6763
6864 // Common (Do not touch)
6965 implementation(project(" :common" , configuration = " namedElements" )) { isTransitive = false } // We cannot common here because it is treated as a different mod and forge will panic
0 commit comments