Skip to content

klee0kai/tasktree

Repository files navigation

TaskTree

Print gradle task dependencies graph

Usage

Configure classpath in project's build.gradle:

buildscript {
    repositories {
        maven(url = "https://jitpack.io")
    }
    dependencies {
        classpath("com.github.klee0kai:tasktree:0.0.9")
    }
}

Apply plugin in your module's build.gradle:

plugins {
    id("tasktree")
}

tasktree {
    inputs = false
    outputs = false
    printClassName = true
    maxDepth = 1
}

Report your build graph

./gradlew tasktree assemble

Configure Init Script

Configure your init script $HOME/.gradle/init.gradle.kts HowIt'sWork.

initscript {
    repositories {
        maven(url = "https://jitpack.io")
    }
    dependencies {
        classpath("com.github.klee0kai:tasktree:0.0.9")
    }
}

rootProject{
    pluginManager.apply(com.github.klee0kai.tasktree.TaskTreePlugin::class.java)

    extensions.findByType(com.github.klee0kai.tasktree.TaskTreeExtension::class.java)
        ?.apply {
            printComplexPrice = true
        }
}

License

Copyright (c) 2023 Andrey Kuzubov