I followed chapter 24 (groovy plugin) to compile groovy sources. I’ve a simple project, just 2 classes. 1 groovy class and 1 java class. My groovy class is located in src/main/groovy and my java class in src/main/java. The problem is that my java class uses the groovy class. During the compiling process I get the following error:
package XX does not exist (package from java class)
I don’t have that problem using maven. When using gradle I’ve to move the java class to src/main/groovy. This can not be the way to do it, because every time a java class uses a groovy class I’ve to move that class and every depending class in src/main/groovy.
Am I missing something? I appreciate your help.
Best regards Daniel