I searched for this but wasn’t able to find anything outside of a few tutorials. None of which mentions main/resources. Is there any place I should have been looking instead?
A lot of the tutorials are still geared towards the old ANT builds which would automatically add the assets folder to the classpath. Somehow, no one has been able to get this working properly with the default gradle build in the SDK.
…so that leaves the users caught in a little bit of a lurch.
I don’t even remember if the project initializer is setting this up correctly yet.
Either way, putting resources in src/main/resources works and has been a pretty standard Java build location for resources since maven was invented… so it will work with JME too. The magic-info is that JME loads assets from the classpath by default.
The initialiser also uses the resouces folder not the assets folder. It could use the assets folder but there is a lot of discussion as to if it should. I’m on team resources folder because it’s standard gradle layout