Hi,
On Mon, Jan 06, 2014 at 12:37:11PM -0800, Matt Bossenbroek wrote:
> There are a number of other files that it didn't mention one way or
> the other in the output, but I don't see any docs for them either. I'm
> new to gradle, so please let me know if I'm just doing it wrong
> entirely :)
You obviously depend on the output of the java compilation. But you
don't add it to the classpath of the clojure related tasks. Fortunately
the doc task inherits this from the compile task. So it is sufficient to
fix the classpath for the compile task. Without this, the require of the
namespaces fails and the documentation cannot be generated.
Unfortunately codox swallows the exception. This is not very helpful and
actually causes a bug in that gradle doesn't notice that the task
failed. I will change that in the next release.
Filtering is done on the source set for all tasks or the individual
tasks. Here you want the latter: the other namespace should still be
included in the jar, but only for core the documentation is generated.
So you put the filter on the doc task. You can filter be filename or by
clojure namespace.
I attached a diff for the build.gradle on github. With the patch things
work for me.
Hope this helps.