All Projects → mmalohlava → Gradle Visteg

mmalohlava / Gradle Visteg

Licence: apache-2.0
Exports task execution graph as .dot file

Programming Languages

groovy
2714 projects

Projects that are alternatives of or similar to Gradle Visteg

Library Analysis
Library Analysis Gradle Plugin
Stars: ✭ 105 (-9.48%)
Mutual labels:  gradle-plugin
Gradle Build Properties Plugin
Keep your secrets secret. External build properties support for your Gradle scripts.
Stars: ✭ 110 (-5.17%)
Mutual labels:  gradle-plugin
Godot
Keep track of how much time you spend on Gradle builds
Stars: ✭ 113 (-2.59%)
Mutual labels:  gradle-plugin
Pythonrc
lonetwin's pimped-up pythonrc
Stars: ✭ 107 (-7.76%)
Mutual labels:  dotfiles
Polka
🐢 dotless files - plz no steel (only cardboard) (sponsored by https://github.com/buffet/kiwmi, plz star & contribute)
Stars: ✭ 109 (-6.03%)
Mutual labels:  dotfiles
Nix Config
My NixOS configuration
Stars: ✭ 112 (-3.45%)
Mutual labels:  dotfiles
Emplace
👩‍❤️‍💋‍👩 Synchronize installed packages on multiple machines
Stars: ✭ 105 (-9.48%)
Mutual labels:  dotfiles
Jaop
jaop is a gradle plugin base on javassist&asm for android aop
Stars: ✭ 115 (-0.86%)
Mutual labels:  gradle-plugin
Dotfiles ikigai
dotfiles 🔥 includes scripts that makes my life easier!
Stars: ✭ 110 (-5.17%)
Mutual labels:  dotfiles
Dotfiles
If there is a shell, there is a way!
Stars: ✭ 112 (-3.45%)
Mutual labels:  dotfiles
Nix Home
Utilities for working with user configurations in Nix.
Stars: ✭ 107 (-7.76%)
Mutual labels:  dotfiles
Dotfiles
▒ rice ░░ custom linux config files
Stars: ✭ 1,514 (+1205.17%)
Mutual labels:  dotfiles
Licensetoolsplugin
Gradle plugin to check library licenses and generate license pages for Android
Stars: ✭ 113 (-2.59%)
Mutual labels:  gradle-plugin
Dotfiles
My personal collection of configuration files.
Stars: ✭ 105 (-9.48%)
Mutual labels:  dotfiles
The Glorious Dotfiles
A glorified personal dot files
Stars: ✭ 1,850 (+1494.83%)
Mutual labels:  dotfiles
Obfusesmalitext
smali文件,jar包字符串混淆,支持gradle插件
Stars: ✭ 105 (-9.48%)
Mutual labels:  gradle-plugin
Dotfiles
My bspwm dotfiles. Grab whatever you need! :)
Stars: ✭ 111 (-4.31%)
Mutual labels:  dotfiles
Fat Aar Android
A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
Stars: ✭ 2,076 (+1689.66%)
Mutual labels:  gradle-plugin
Kody
.files and environment configuration manager created with node
Stars: ✭ 113 (-2.59%)
Mutual labels:  dotfiles
Audiovideocodec
一款视频录像机,支持AudioRecord录音、MediaCodec输出AAC、MediaMuxer合成音频视频并输出mp4,支持自动对焦、屏幕亮度调节、录制视频时长监听、手势缩放调整焦距等
Stars: ✭ 113 (-2.59%)
Mutual labels:  gradle-plugin

Gradle VisTEG

Overview

VisTeg is a Gradle plugin for exporting task execution graph as .dot file.

Configuration

Apply visteg plugin

Gradle 1.x and 2.0

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'gradle.plugin.cz.malohlava:visteg:1.0.5'
    }
}

apply plugin: 'cz.malohlava.visteg'

Gradle 2.1 and higher

plugins {
  id 'cz.malohlava.visteg' version '1.0.5'
}

Configure graph generator

The plugin publishes visteg extension with following configuration options:

visteg {
    enabled        = true
    colouredNodes  = true
    colouredEdges  = true
    destination    = 'build/reports/visteg.dot'
    exporter       = 'dot'
    colorscheme    = 'spectral11'
    nodeShape      = 'box'
    startNodeShape = 'hexagon'
    endNodeShape   = 'doubleoctagon'
}

The plugin supports the following options:

  • enabled - Enables plugin for the project.
  • colouredNodes - Produces colored nodes.
  • colouredEdges - Produces colored edges.
  • destination - The output file location.
  • exporter - Name of graph exporter, only dot value is supported now.
  • colorscheme - Name of color scheme used for graph coloring. For full list of values see Graphviz page.
  • nodeShape - Name of shape used for graph inner nodes. See Graphviz page for full list of values.
  • startNodeShape - Name of shape used for graph start nodes. See Graphviz page for full list of values.
  • endNodeShape - Name of shape used for graph leaf nodes. See Graphviz page for full list of values.

Graph generation

Perform any Gradle task, for example build:

./gradlew build

It will generate a .dot file in the directory build/reports containing execution plan graph for task build.

Image generation

The generated file can be post-processed via Graphviz dot utility.

For example, png image is produced as follows:

cd build/reports/
dot -Tpng ./visteg.dot -o ./visteg.dot.png

For more information, please visit Graphviz home page.

Design

The plugin installs itself as a listener to Gradle lifecycle via gradle.taskGraph.whenReady. During execution it obtains reference to task execution graph via reflection and performs a walk through the graph.

Acknowledgements

Based on idea published by Code Wader - http://codewader.blogspot.com/2011/11/show-gradle-dependencies-as-graphwiz.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].