I'm trying to update the root build.gradle to handle some of my recent changes and am running past my understanding of source sets.

The javadoc task currently has:
srcDirs = subprojects.inject([]) {list, project -> list + project.source.main.java.srcDirs + project.source.main.groovy.srcDirs}

I have changed a sub-project to not be a groovy project and am trying to build up the correct set of sources for javadoc, but I can't figure out how to test what kind of sources are in a SourceSet. If I reference project.source.main.groovy I get an exception on non-groovy projects.

project.source.main.groovy is not always valid - actually, I don't understand why it is ever valid, getGroovy is not a part of the SourceSet interface but is injected dynamically in some way that I couldn't follow. SourceSet.getJava is always part of the interface, but seems odd for a Groovy project.

--
Steve Appling
Automated Logic Research Team

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to