diff options
author | Antonio Zugaldia <antonio@mapbox.com> | 2018-04-05 10:20:50 -0400 |
---|---|---|
committer | Antonio Zugaldia <antonio@mapbox.com> | 2018-04-05 10:20:50 -0400 |
commit | 179e6afeaaf4536639dffcfc48bd3507ed69d018 (patch) | |
tree | c0f013446783db339bbb1f0fa47dcb28ef7e468b /platform/android/gradle | |
parent | 006d2ab1d5f65242d9e53e9d804c01ac2d450537 (diff) | |
download | qtlocation-mapboxgl-179e6afeaaf4536639dffcfc48bd3507ed69d018.tar.gz |
adds gradle-dependency-graph-generator-plugin to the project
Diffstat (limited to 'platform/android/gradle')
-rw-r--r-- | platform/android/gradle/graph.gradle | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/platform/android/gradle/graph.gradle b/platform/android/gradle/graph.gradle new file mode 100644 index 0000000000..1ff4ff816e --- /dev/null +++ b/platform/android/gradle/graph.gradle @@ -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") }, // Only want Mapbox libs. + { dependency -> true }, // Include transitive dependencies. +) + +dependencyGraphGenerator { + generators = [mapboxGenerator] +} |