I have eclipse working this project https://github.com/deanhiller/webpiecesExample which is a pretty simple hello world type project. I am trying to get intellij working with that project to try it out in intellij.
I have tried the gradle plugin(Intellij 15) and ./gradlew idea(which seems like a complete failure as intellij unlike eclipse seems to force me into the plugin when I try to mount that project…perhaps I should delete all my .gradle files temporarily).
ok, 2016 Intelli gradle plugin doesn’t work either (and I am not sure how to fix it…I was at least able to work around the issues in eclipse temporarily so I am hoping in intellij there is a way as well)j, I was able to suck the project in and it actually compiles fine this time but had issues later. Here are the steps…
The html files shouldn’t be in src/main/java, that’s for java source code only.
You could reconfigure your project to make that folder both a java source folder and a resource folder, but I strongly suggest you stick with the best practices.
nah, we find it is slower then as you have to double create package heirarchies which is very annoying. Best practices when we find are slower are not very much best practices anymore. For most projects, I would say following that is ok. When the html files are relative referenced from controllers, that can get quite annoying. Gradle was nice and flexible in allowing this…something that we hated about maven and why we switched.