kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Gradle unable to resolve dependency on kotlinx v 0.7.2

Open HPNavjot opened this issue 9 months ago • 0 comments

I use detekt v1.14.2 but recently I am facing issue as the gradle failed to download kotlinx-html-jvm v0.7.2

Execution failed for task ':sample-core:detekt'.
> Could not resolve all files for configuration ':sample-core:detekt'.
   > Could not find org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.2/kotlinx-html-jvm-0.7.2.pom
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.2/kotlinx-html-jvm-0.7.2.pom
     Required by:
         project :sample-core > io.gitlab.arturbosch.detekt:detekt-cli:1.14.2 > io.gitlab.arturbosch.detekt:detekt-bom:1.14.2
   > Could not find org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.2/kotlinx-html-jvm-0.7.2.pom
       - https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-html-jvm/0.7.2/kotlinx-html-jvm-0.7.2.pom
     Required by:
         project :sample-core > io.gitlab.arturbosch.detekt:detekt-cli:1.14.2 > io.gitlab.arturbosch.detekt:detekt-core:1.14.2 > io.gitlab.arturbosch.detekt:detekt-report-html:1.14.2

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Seems like the directory for v0.7.2 does not exist at https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-html-jvm/

HPNavjot avatar Jan 20 '25 10:01 HPNavjot