Reputation: 10556
I have a project where the Java sources are not in the standard position Gradle expects them.
How can I point Gradle to the right directory ?
Upvotes: 0
Views: 399
Reputation: 27994
If you have no sources in src/main/java
then it's slightly more correct to do
sourceSets.main.java.srcDirs = ['path/to/your/java/packages']
Upvotes: 3