ktlint-gradle: Version 0.10.0 fails at loadKtlintReporters about dependency
When I run ktlintCheck, tasks fails with;
* What went wrong:
Execution failed for task ':loadKtlintReporters'.
> Could not resolve all files for configuration ':ktlint'.
> Cannot resolve external dependency com.pinterest:ktlint:0.40.0 because no repositories are defined.
Required by:
project :
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.pinterest:ktlint:0.40.0 because no repositories are defined.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16
@frett on a side note - I also advice you to fully migrate into
plugins { .. }
approach and drop usages ofclasspath
. For Android plugins you could use following approach: https://github.com/JLLeitschuh/ktlint-gradle/blob/83e51ee716dc41781106555eb5f0f53d3dedda80/settings.gradle.kts#L9-L16Check second question in faq for reasoning behind.
@frett in your case adding:
fixes the issue.
it’s occurring on the master branch of this public repo if you wanted to experiment: https://github.com/CruGlobal/android-gto-support