KotlinForForge
KotlinForForge copied to clipboard
Unable to use other Kotlin libraries with KFF on Forge/NeoForge
I'm writing a Minecraft mod / Discord bot combo: https://github.com/Erdragh/AstralBot
It uses JDA to communicate with Discord. JDA has a dependency on okhttp3 which over multiple corners has a dependency on the kotlin stdlib. I'm excluding the org.jetbrains.kotlin
dependency from JDA.
I'm using Kotlin for the Mod itself and the build scripts. The Fabric server starts fine, the Forge server doesn't.
To reproduce:
- Clone repo mentioned above
- Start the Forge server with the env variable
DISCORD_TOKEN
set to any value, just so it's defined.
The relevant exception is the following: https://gist.github.com/Erdragh/c84543358f069f43e16e90fb55665324
I'm not sure whether this is an Architectury or a KFF issue, I've already made a support post on the Architectury Discord with no result.
What I find weird is that kotlin.reflect
is apparently loading fine judging from the stack trace, but kotlin/Unit
just can't be found.