Closed tux-mind closed 7 years ago
The newest version of the taskTree plugin works with gradle versions 2.14 and up. See: https://github.com/dorongold/gradle-task-tree#version-compatibility
Ok, I made this issue just to let you known.
Closing.
I now solved this in a more elegant way:
The new version of the plugin (1.3) works on all Gradle versions greater than 2.3.
Instead of having an import statement with org.gradle.internal.logging.text.StyledTextOutput
, I take advantage of Groovy's dynamic nature and define StyledTextOutput
as a dynamic variable. This way it can work in different gradle versions which have this class under different FQNs.
d7cbef5013eb9402be75d3c899177a091a5d36e5 ae2c2fce3f98ef8a0f122dcf63cc4efedc987584
Thank you mate :) Great job :)
I have another plugin that works only with gradle <= 2.8, forcing me to use gradle version 2.8.
You plugin uses the internal class
org.gradle.internal.logging.text.StyledTextOutput
which is not present in that version, causing the following error:A quick workaround is to require a certain gradle version to ensure that your plugin can work. A more robust fix is to disable colored/styled output if that class cannot be found.
I hope this helps, best regards :)