I am using Gradle 2.0. What should I write in build.gradle
so that the javadocs and sources are also downloaded along with the jars?
相关问题
- Could not read entry … from cache taskArtifacts.bi
- Configure gradle plugin based on future tasks
- How to fix the error Cannot change strategy of con
- Include pom.xml in Jar with gradle
- Error:(41, 0) Supplied String module notation '
相关文章
- Android BuildConfig Field generating String incorr
- Gradle Could not find method “() for arguments on
- Gradle Custom Plugin: gradleApi() vs Explicit Depe
- Android Studio 3.5 ERROR: Unable to resolve depend
- How to specify @category in test task in gradle?
- How to clean your build with Flutter RP2 in Androi
- Remove transitive classpath dependency in gradle
- Execution failed for task ':bintrayUpload'
You can write an ArtifactResolutionQuery that copies all SourcesArtifact and JavadocArtifact for each of your dependencies
See here for an example and here for the gradle source code which does it for the Eclipse/Intellij plugins
I guess your question is related to a dev workspace, here are links explaining how to add the required configuration in Gradle using the IDEs' plugins:
For Eclipse:
For IntelliJ & Android Studio
To run these plugins:
Add the
javadoc
orsources
classifies as dependencies: