You can unset the src/main/java
source folder with the following configuration:
sourceSets.main.java.srcDirs = []
Also, since Buildship 1.0.18 (+Gradle 3.0) you can customize the entire classpath as you wish. You’ll find samples in the release announcement.