Skip to content

Instantly share code, notes, and snippets.

@bric3
Last active February 10, 2022 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bric3/38e583efb5c4d93232f85f5b858ba9c4 to your computer and use it in GitHub Desktop.
Save bric3/38e583efb5c4d93232f85f5b858ba9c4 to your computer and use it in GitHub Desktop.
Apply task-info in order to access tiTree task on all gradle project. Pu this in `~/.gradle/init.d/taskinfo.gradle.kts`
initscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("gradle.plugin.org.barfuin.gradle.taskinfo:gradle-taskinfo:1.3.1")
}
}
// don't use rootProject as it may not be ready
allprojects {
afterEvaluate {
if (parent == null) {
// using a class name there somwhow mkaes Gradle complain about 'taskinfo'
// extension being already registered, instead let's use the plugin id
if(!plugins.hasPlugin("org.barfuin.gradle.taskinfo")) {
apply<org.barfuin.gradle.taskinfo.GradleTaskInfoPlugin>()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment