在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dorongold/gradle-task-tree开源软件地址(OpenSource Url):https://github.com/dorongold/gradle-task-tree开源编程语言(OpenSource Language):Groovy 83.6%开源软件介绍(OpenSource Introduction):Gradle Task TreeGradle plugin that adds a The task dependency tree is printed with a similar format to that of the built-in InstallationThe plugin can be configured in the build script or in an init script. The plugin is published on Gradle Plugin Portal. Build Script Snippetplugins {
id "com.dorongold.task-tree" version "2.1.0"
} Init Script SnippetTo use this plugin in all your projects, put the following in a file named initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies {
classpath "com.dorongold.plugins:task-tree:2.1.0"
}
}
rootProject {
apply plugin: com.dorongold.gradle.tasktree.TaskTreePlugin
} Usage
When one of the tasks given to the gradle command is Examples
ConfigurationTo limit the depth of the printed tree, add the command-line option: For a more static custom configuration, you can put the following in //optional configuration (per project)
tasks.named('taskTree').configure {
depth = 3 // limit tree depth to 3. Equivalent to the --depth CLI task option.
withInputs = true // prints task inputs in red just below the task in the tree. Equivalent to the --with-inputs CLI task option.
withOutputs = true // prints task inputs in red just below the task in the tree. Equivalent to the --with-outputs CLI task option.
repeat = true // allows printing a sub-tree in the task-tree more than once. Equivalent to the --repeat CLI task option
impliesSubProjects = true // disables printing task-tree for child projects in a multi-project
} Note:In a multi-project, it is recommended to apply the plugin on the root project only. The Version CompatibilityGradle 6.8+ Older Version CompatibilityVersion 1.5 of this plugin is compatible with Gradle 2.3+ IntelliJ Pluginreveal-dependency-plugin can print the task dependency tree inside IntelliJ. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论