[GRADLE-1391] Groovydoc doesn't create external links in generated HTML Created: 19/Feb/11  Updated: 04/Jan/13  Resolved: 22/Feb/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-1

Type: Bug
Reporter: Evgeny Goldin Assignee: Peter Niederwieser
Resolution: Fixed Votes: 0


Please, see http://gradle.1045684.n5.nabble.com/Groovydoc-not-creating-external-links-in-generated-HTML-td3315578.html.
If external libraries are added to groovydoc.links they are not created in result GroovyDoc unless compile classpath is added to groovydoc.groovyClasspath:

groovydoc {
    links  = [ new Link( 'http://static.springsource.org/spring/docs/3.0.x/javadoc-api/', 'org.springframework' ),
               new Link( 'http://download.oracle.com/javase/6/docs/api/',                 'java' ),
               new Link( 'http://groovy.codehaus.org/api/',                               'groovy', 'org.codehaus.groovy' ),
               new Link( 'http://commons.apache.org/net/apidocs/',                        'org.apache.commons.net' ),
               new Link( 'http://evgeny-goldin.org/javadoc/truezip/',                     'de.schlichtherle' )] as Set
    groovyClasspath = configurations.compile

Comment by Peter Niederwieser [ 19/Feb/11 ]

By the way, GroovyDoc also supports this syntax:

groovydoc {
  link 'http"//groovy.codehaus.org./api', 'groovy.', 'org.codehaus.groovy.'
  link ...
Comment by Evgeny Goldin [ 19/Feb/11 ]

Cool, switched to it.

Comment by Evgeny Goldin [ 02/Jun/12 ]

Could it be back in "1.0-rc-3"? Having the same issue again, here's the project you can try.

Generated at Wed Jun 30 11:54:21 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.