Vic Seedoubleyew
Vic Seedoubleyew

Reputation: 10556

How to change java sources directory in Gradle build script

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

Answers (1)

lance-java
lance-java

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

Related Questions