Solved the issue. For anyone interested, I ended up turning it into a multi-module gradle project and had a java-specific module depend on the multiplatform module, then shadow-jar’d the java-specific one
EDIT: Let me know if you want to see the gradle files