Skip to content

Instantly share code, notes, and snippets.

@johnrengelman
Created September 2, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrengelman/43640b3784f47455fa7d to your computer and use it in GitHub Desktop.
Save johnrengelman/43640b3784f47455fa7d to your computer and use it in GitHub Desktop.
Gradle Plugin Groovydoc
apply plugin: 'groovy'
configurations {
groovydoc
}
dependencies {
compile gradleApi()
compile localGroovy()
groovydoc gradleApi()
groovydoc localGroovy()
}
groovydoc {
classpath -= project.configurations.groovydoc
groovyClasspath = project.configuration.groovydoc
doFirst {
['http://www.gradle.org/docs/current/groovydoc/'].each {
link(it, *(new URL("$it/package-list").text.tokenize('\n')))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment