An open API service indexing awesome lists of open source software.

https://github.com/klee0kai/tasktree

Print gradle task dependencies graph
https://github.com/klee0kai/tasktree

gradle-plugin kotlin tasktree

Last synced: 11 months ago
JSON representation

Print gradle task dependencies graph

Awesome Lists containing this project

README

          

## TaskTree

[![](https://img.shields.io/badge/license-GNU_GPLv3-blue.svg?style=flat-square)](./LICENSE)
[![](https://jitpack.io/v/klee0kai/tasktree.svg)](https://jitpack.io/#klee0kai/tasktree)

Print gradle task dependencies graph

## Usage

Configure classpath in project's `build.gradle`:

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

Apply plugin in your module's `build.gradle`:

```kotlin
plugins {
id("tasktree")
}

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

Report your build graph

```bash
./gradlew tasktree assemble
```

## Configure Init Script

Configure your init script `$HOME/.gradle/init.gradle.kts`
[HowIt'sWork](https://docs.gradle.org/current/userguide/init_scripts.html).

```kotlin
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
```