I have a project that is build using SBT which packages a single jar using the one-jar plugin. That project contains a bunch of json files in src/main/resources/fixture which I used to access via
new java.io.File(App.getClass.getResource("/fixture").getFile
Unfortunately this doesn't work any longer since no Resource is returned. I think one-jar uses a special classloading mechanism? Whats the best way to solve this?
Yes, this must be true since there is no standardized way to load classes that packaged into dependency jar that is in turn packaged into your application jar. This usually is implemented with additional classloader trickery.
Loading resources when using One-JAR is documented here.