ktlint-gradle
ktlint-gradle copied to clipboard
How to check if optional settings are being set
I want to check if the optional setting are being set, how do I check this?
ktlint {
version = "0.48.2"
ignoreFailures = false
outputColorName = "RED"
}
How can I check which version is being used?
Following settings are visible in the console when set at the right place: ignoreFailures = true outputToConsole=false
Setting colors did not work for me. And what I don't know to check is the ktlint version, I suppose the ktlint.jar must be downloaded somewhere?
Setting colors did not work for me. And what I don't know to check is the ktlint version, I suppose the ktlint.jar must be downloaded somewhere?
You can use the dependencyInsights, or dependencies task, I can't remember which, to see what version of ktlint is actually getting resolved by your build.
https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html