Last active
December 1, 2016 14:53
-
-
Save darylteo/8051600 to your computer and use it in GitHub Desktop.
Add external sources to javadoc.
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: '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