Our source tree is … interesting. In order to compile anything, I need to pass around 80 distinct directories to javac’s -sourcepath option. (In a nutshell, everything depends on everything.) But if I set those as srcDir properties of my Java sourceSet with Gradle, it tries to compile everything. I don’t want that – yet. I just want to pass the 80 directories as sourcepath dirs.
Haven’t seen anything about sourcepath in the manual and Google didn’t help. Any tips?
It isn’t currently supported directly, but I think it would be a good idea. It would also make sense to use a different default than javac (which defaults sourcepath to classpath), but then this would constitute a breaking change. If you are interested in contributing, let us know.