summaryrefslogtreecommitdiff
path: root/platform/android/gradle/gradle-javadoc.gradle
blob: cf7f8f743b3b8a9075a40ebf70843c4a96a3d5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
android.libraryVariants.all { variant ->
    def name = variant.name
    task "javadoc$name"(type: Javadoc) {
        description = "Generates javadoc for build $name"
        failOnError = false
        destinationDir = new File(destinationDir, variant.baseName)
        source = variant.javaCompile.source
        options.windowTitle("Mapbox Maps SDK for Android $VERSION_NAME Reference")
        options.docTitle("Mapbox Maps SDK for Android $VERSION_NAME")
        options.header("Mapbox Maps SDK for Android $VERSION_NAME Reference")
        options.bottom("© 2015–2018 Mapbox. All rights reserved.")
        options.links("http://docs.oracle.com/javase/7/docs/api/")
        options.linksOffline("http://d.android.com/reference/", "$System.env.ANDROID_HOME/docs/reference")
        options.overview("src/main/java/overview.html")
        options.group("Mapbox Android SDK", "com.mapbox.*")
        exclude '**/R.java', '**/BuildConfig.java'
    }
}