This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Adds gradle-dependency-graph-generator-plugin to Android pr…
…oject (#11603) * adds gradle-dependency-graph-generator-plugin to the project * keep script in sync with mapbox/mapbox-android-demo#671 * adds a makefile rule for dependency generation
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dependency-graph-mapbox-libraries.png |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath "com.vanniktech:gradle-dependency-graph-generator-plugin:0.3.0" | ||
} | ||
} | ||
|
||
import com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorPlugin | ||
import com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorExtension.Generator | ||
import com.vanniktech.dependency.graph.generator.dot.GraphFormattingOptions | ||
import com.vanniktech.dependency.graph.generator.dot.Color | ||
import com.vanniktech.dependency.graph.generator.dot.Shape | ||
import com.vanniktech.dependency.graph.generator.dot.Style | ||
|
||
plugins.apply(DependencyGraphGeneratorPlugin) | ||
|
||
def mapboxGenerator = new Generator( | ||
"mapboxLibraries", // Suffix for our Gradle task. | ||
"", // Root suffix that we don't want in this case. | ||
{ dependency -> dependency.getModuleGroup().startsWith("com.mapbox.mapboxsdk") }, // Only want Mapbox libs. | ||
{ dependency -> true }, // Include transitive dependencies. | ||
) | ||
|
||
dependencyGraphGenerator { | ||
generators = [mapboxGenerator] | ||
} |