Reputation: 979
I am using gradle version 7.0.0-beta01 and following this guide to setup KtLint to my project. But I am facing error while running following command
./gradlew ktlintFormat
Running with -stacktrace
etc also doesn't seem to help much. Here is the error I am getting. Any help is much appreciated.
Execution failed for task ':app:ktlintAndroidTestDebugSourceSetFormat'.
> Querying the mapped value of task ':app:ktlintAndroidTestDebugSourceSetFormat' property 'reporterOutputDir' before task ':app:ktlintAndroidTestDebugSourceSetFormat' has completed is not supported
Upvotes: 3
Views: 7551
Reputation: 547
Updating to latest version of ktlint should be the solution to this issues for compatability
Upvotes: 0
Reputation: 3028
This was fixed in a later version of the ktlint gradle plugin. You can go down to 9.2.1
or up to 10.0.0
. See this issue.
Upvotes: 4