I’m having problems using detekt in my project… (kotlin jvm project) I have different problems if I...
p

pedro

over 5 years ago
I’m having problems using detekt in my project… (kotlin jvm project) I have different problems if I use 1.9.1 or 1.10.0 1.10.0
Execution failed for task ':foo:detekt'.
> Could not resolve all files for configuration ':foo:detekt'.
   > Could not find io.gitlab.arturbosch.detekt:detekt-cli:1.10.0.
     Searched in the following locations:
       - <https://repo.maven.apache.org/maven2/io/gitlab/arturbosch/detekt/detekt-cli/1.10.0/detekt-cli-1.10.0.pom>
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
I have seen someone mentioning in github issues that it seems that some artifacts weren’t published in all repositories If I try to use 1.9.1:
> Could not find org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.1.
     Searched in the following locations:
       - <https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.1/kotlinx-html-jvm-0.7.1.pom>
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :foo > io.gitlab.arturbosch.detekt:detekt-cli:1.9.1
I’ve tried all possible combinations of the instructions in the website and still haven’t got it to work. Can someone help?