Last active
February 10, 2022 12:43
-
-
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`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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