This folder contains two Gradle plugins that encapsulates common build logic for our different modules:
MapboxLibraryPlugin
: responsible to configure Android library modulesMapboxApplicationPlugin
: responsible to configure Android application modules
Both plugins MapboxLibraryPlugin
and MapboxApplicationPlugin
will create product flavors for private
and public
.
They will also apply the Gradle plugins common.
In your build Gradle file:
plugins {
id("com.mapbox.gradle.library")
}
mapboxLibrary {
dokka {
extraListOfSources = File("api-doc-list-maps-core.txt").readLines()
reportUndocumented = false
}
}
You can debug this plugin by creating a Remote JVM Debug
run configuration (instructions here).
Then, every time you want to debug, run the desired Gradle task from the command line with the parameter
-Dorg.gradle.debug=true
(e.g., ./gradlew plugin-annotation:tasks --no-parallel -no-daemon -Dorg.gradle.debug=true
).
Gradle will start but immediately wait for the debugger to attach before proceeding.
At this point, run the remote JVM debug configuration you created.