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 | |
parent | 006d2ab1d5f65242d9e53e9d804c01ac2d450537 (diff) | |
download | qtlocation-mapboxgl-179e6afeaaf4536639dffcfc48bd3507ed69d018.tar.gz |
adds gradle-dependency-graph-generator-plugin to the project
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/.gitignore | 1 | ||||
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/build.gradle | 1 | ||||
-rw-r--r-- | platform/android/gradle/graph.gradle | 29 |
3 files changed, 31 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/.gitignore b/platform/android/MapboxGLAndroidSDK/.gitignore new file mode 100644 index 0000000000..c24bd2563a --- /dev/null +++ b/platform/android/MapboxGLAndroidSDK/.gitignore @@ -0,0 +1 @@ +dependency-graph-mapbox-libraries.png diff --git a/platform/android/MapboxGLAndroidSDK/build.gradle b/platform/android/MapboxGLAndroidSDK/build.gradle index 9063321648..350bf1eae0 100644 --- a/platform/android/MapboxGLAndroidSDK/build.gradle +++ b/platform/android/MapboxGLAndroidSDK/build.gradle @@ -150,3 +150,4 @@ apply from: "${rootDir}/gradle/gradle-javadoc.gradle" apply from: "${rootDir}/gradle/gradle-publish.gradle" apply from: "${rootDir}/gradle/gradle-checkstyle.gradle" apply from: "${rootDir}/gradle/gradle-tests-staticblockremover.gradle" +apply from: "${rootDir}/gradle/graph.gradle" 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] +} |