Created
November 12, 2018 02:10
-
-
Save msdx/8592efff83ba9b70cafd418eeb4f818e to your computer and use it in GitHub Desktop.
Android Gradle Javadoc Task
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
task javadoc(type: Javadoc, dependsOn: 'assembleRelease') { | |
source = android.sourceSets.main.java.srcDirs | |
classpath += configurations.compile | |
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | |
android.libraryVariants.all { variant -> | |
if (variant.name == 'release') { | |
owner.classpath += variant.javaCompile.classpath | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment