# How to produce html cross-reference for all project's Java sources?

**URL:** <https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828>\
**Category:** Old Forum Archive\
**Created:** [March 8, 2013, 1:10pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828 "2013-03-08T13:10:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide\_cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@davide\_cavestro](https://discuss.gradle.org/u/davide_cavestro)\
**Post date:** [March 8, 2013, 1:10pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/1 "2013-03-08T13:10:00Z")

</div>

Is there an easy way to produce HTML cross-reference for all project’s Java sources? I think about something similar to [Maven JXR Plugin] ([http://maven.apache.org/plugins/maven-jxr-plugin/](http://maven.apache.org/plugins/maven-jxr-plugin/)).

[I asked](http://gradle.1045684.n5.nabble.com/How-to-produce-HTML-cross-reference-for-project-s-Java-sources-td4852605.html) the same more than 1 year ago into the mailing list, with no response. Just hope in the meantime something arisen. Some years ago laso appeared something similar on [http://groovy.329449.n5.nabble.com/Groovydoc-td387710.html](http://groovy.329449.n5.nabble.com/Groovydoc-td387710.html)

Cheers

Davide

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [March 8, 2013, 1:21pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/2 "2013-03-08T13:21:00Z")

</div>

I’m not aware of anything like this that exists at this time.

Is JXR a standalone tool? Or is it coupled to Maven?

---

<div class="post-metadata">

**Author:** ![davide\_cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@davide\_cavestro](https://discuss.gradle.org/u/davide_cavestro)\
**Post date:** [March 8, 2013, 1:40pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/3 "2013-03-08T13:40:00Z")

</div>

I’m not sure, but I guess it was born under maven project. However I’ve seen there’s [ant task](https://github.com/MaliciousMonkey/JXR-Ant) that maybe could be used from gradle…

This way we could obtain a great project documentation toolkit (beside asciidoctor-gradle plugin). You could [link sources’ crossreference](http://maven.apache.org/plugins/maven-jxr-plugin/examples/linkjavadoc.html) with the corresponding Javadoc

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [March 8, 2013, 1:44pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/4 "2013-03-08T13:44:00Z")

</div>

Contributions always welcome 🙂

This would be a very welcome one indeed.

---

<div class="post-metadata">

**Author:** ![davide\_cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@davide\_cavestro](https://discuss.gradle.org/u/davide_cavestro)\
**Post date:** [March 8, 2013, 4:42pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/5 "2013-03-08T16:42:00Z")

</div>

Ok, I’ll give it a look as soon as possible, in the meantime… here you are the core maven entry point [http://maven.apache.org/jxr//xref/org/apache/maven/jxr/JXR.html](http://maven.apache.org/jxr//xref/org/apache/maven/jxr/JXR.html) Not so bad 🙂 Other info [https://maven.apache.org/jxr/examples/java.html](https://maven.apache.org/jxr/examples/java.html)

---

<div class="post-metadata">

**Author:** ![davide\_cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@davide\_cavestro](https://discuss.gradle.org/u/davide_cavestro)\
**Post date:** [March 12, 2013, 12:01pm UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/6 "2013-03-12T12:01:00Z")

</div>

@Luke I’m working on [https://github.com/davidecavestro/gradle-jxr-plugin](https://github.com/davidecavestro/gradle-jxr-plugin) I just have to find the right way to automatically publish the jar to bintray in order to release a first minimal version.

---

<div class="post-metadata">

**Author:** ![davide\_cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@davide\_cavestro](https://discuss.gradle.org/u/davide_cavestro)\
**Post date:** [March 13, 2013, 7:44am UTC](https://discuss.gradle.org/t/how-to-produce-html-cross-reference-for-all-projects-java-sources/6828/7 "2013-03-13T07:44:00Z")

</div>

Just released [https://github.com/davidecavestro/gradle-jxr-plugin](https://github.com/davidecavestro/gradle-jxr-plugin) Take version 0.1 as a first proof of concept (to-do list plenty of tasks). Contributions welcome 😉
