question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 0.10.0 fails at loadKtlintReporters about dependency

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
Tapchicomacommented, Feb 11, 2021

@frett on a side note - I also advice you to fully migrate into plugins { .. } approach and drop usages of classpath. For Android plugins you could use following approach: https://github.com/JLLeitschuh/ktlint-gradle/blob/83e51ee716dc41781106555eb5f0f53d3dedda80/settings.gradle.kts#L9-L16

Check second question in faq for reasoning behind.

1reaction
Tapchicomacommented, Feb 11, 2021

@frett in your case adding:

allprojects {
    repositories {
        mavenCentral()
    }
}

fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task :loadKtlintReporters FAILED · Issue #567 - GitHub
When i replaced plugin version to 8.x.x, it works fine without error. Is there detail version compatibilty table?
Read more >
android - Problems running ktlint from module - Stack Overflow
and run the task, I get this error: FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of...
Read more >
io.beekeeper.gradle.plugins.dependency-updates
io.beekeeper.gradle.plugins.dependency-updates. Owner: Beekeeper. Scan dependencies in you project and check if there are new verions available.
Read more >
Change Log - gradle refreshVersions - GitHub Pages
Life is too short to google for dependencies and versions. ... error. Versions Catalog migration only worked properly if you ran it twice....
Read more >
com.hierynomus : smbj : 0.10.0 - Maven Central
com.hierynomus:smbj 0.10.0. content_copy. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found