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
- Host: GitHub
- URL: https://github.com/klee0kai/tasktree
- Owner: klee0kai
- License: gpl-3.0
- Created: 2023-05-28T12:49:51.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2024-08-09T17:28:10.000Z (over 1 year ago)
- Last Synced: 2024-08-09T18:48:47.337Z (over 1 year ago)
- Topics: gradle-plugin, kotlin, tasktree
- Language: Kotlin
- Homepage:
- Size: 151 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## TaskTree
[](./LICENSE)
[](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
```