Skip to content

Commit

Permalink
Merge pull request apache#7615: Replace visteg plugin with gradle-tas…
Browse files Browse the repository at this point in the history
…k-tree to visualize task dependency tree
  • Loading branch information
swegner authored Jan 25, 2019
2 parents cfe94db + ef48df8 commit 40148f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ buildscript {
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.16.0" // Enable a code formatting plugin
classpath "gradle.plugin.com.github.blindpirate:gogradle:0.10" // Enable Go code compilation
classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.20.1" // Enable building Docker containers
classpath "cz.malohlava:visteg:1.0.3" // Enable generating Gradle task dependencies as ".dot" files
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.4" // Enable shading Java dependencies
classpath "gradle.plugin.com.dorongold.plugins:task-tree:1.3.1" // Adds a 'taskTree' task to print task dependency tree
classpath "ca.coglinc:javacc-gradle-plugin:2.4.0" // Enable the JavaCC parser generator
classpath "gradle.plugin.io.pry.gradle.offline_dependencies:gradle-offline-dependencies-plugin:0.3" // Enable creating an offline repository
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.13" // Enable errorprone Java static analysis
Expand All @@ -83,13 +83,6 @@ if (!gradle.startParameter.isOffline()) {
apply plugin: "com.gradle.build-scan"
}

// Apply a task dependency visualization plugin which creates a ".dot" file containing the
// task dependencies for the current build. This command can help create a visual representation:
// dot -Tsvg build/reports/visteg.dot > build_dependencies.svg
//
// See https://github.com/mmalohlava/gradle-visteg for further details.
apply plugin: "cz.malohlava.visteg"

// This plugin provides a task to determine which dependencies have updates.
// Additionally, the plugin checks for updates to Gradle itself.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ class BeamModulePlugin implements Plugin<Project> {
// when attempting to resolve dependency issues.
project.apply plugin: "project-report"

// Adds a taskTree task that prints task dependency tree report to the console.
// Useful for investigating build issues.
// See: https://github.com/dorongold/gradle-task-tree
project.apply plugin: "com.dorongold.task-tree"
project.taskTree { noRepeat = true }

/** ***********************************************************************************************/
// Define and export a map dependencies shared across multiple sub-projects.
//
Expand Down

0 comments on commit 40148f5

Please sign in to comment.