Created
September 2, 2014 15:38
-
-
Save johnrengelman/43640b3784f47455fa7d to your computer and use it in GitHub Desktop.
Gradle Plugin Groovydoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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