Resource folder gets copied in the wrong place

Sorry for being a total noob. I have a simple java project. Default structure: production source in src/main/java and resources in src/main/resources

What I find weird is that in the build folder generated I get the classes in: build/classes/main/… But I get resources in build/resources/main Shouldn’t they be in the classes folder as well? IntelliJ seems to think so.

What’s weird is that the folders are correct inside the jar file. Am I just completely confused?

That’s expected. In Gradle, processed resources go into a separate directory.