I am having ktlint v1.4.1 in my project with kotlin v2.0.21 and diktat v2.0.0 and it was working fine but now I wanted to upgrade my ktlint v1.5.0 or 1v.6.0 with diktat v2.0.0 and kotlin v2.0.21 and it is failing with below error. Any idea? How to resolve this error or will that not work due to compatibility issue?
:detekt-rules:main: Could not resolve org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.21.
Required by:
project :detekt-rules > com.saveourtool.diktat:diktat-rules:2.0.0
project :detekt-rules > com.saveourtool.diktat:diktat-rules:2.0.0 > com.saveourtool.diktat:diktat-api:2.0.0
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
I am having ktlint v1.4.1 in my project with kotlin v2.0.21 and diktat v2.0.0 and it was working fine but now I wanted to upgrade my ktlint v1.5.0 or 1v.6.0 with diktat v2.0.0 and kotlin v2.0.21 and it is failing with below error. Any idea? How to resolve this error or will that not work due to compatibility issue?