Skip to content

Instantly share code, notes, and snippets.

@daschl
Forked from darylteo/javadoc.gradle
Created December 20, 2013 08:32
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 daschl/8051940 to your computer and use it in GitHub Desktop.
Save daschl/8051940 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'net.spy', name:'spymemcached', version: '2.10.3'
}
javadoc {
def sources = configurations.create '__depSources'
dependencies {
__depSources group: 'net.spy', name:'spymemcached', version: '2.10.3', classifier: 'sources'
}
def jars = configurations.depSources.files
jars
.collect({ jar -> project.zipTree(jar).matching({ include '**/*.java'}) })
.each { files ->
source += files
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment