summaryrefslogtreecommitdiff
path: root/platform/android/gradle/gradle-javadoc.gradle
blob: 846467b71dc395003e4fd61f0761732907060dce (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.getJavaCompiler().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'
    }
}