arrow-kt / arrow

Λrrow - Functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
6.13k stars 442 forks source link

Duplicate class for arrow-optics-compose #3447

Closed risalfajar closed 2 months ago

risalfajar commented 3 months ago

Adding arrow-optics-compose like this:

dependency {
    implementation(platform("io.arrow-kt:arrow-stack:1.2.4"))
    implementation("io.arrow-kt:arrow-core")
    implementation("io.arrow-kt:arrow-optics")
    implementation("io.arrow-kt:arrow-optics-compose")
    ksp("io.arrow-kt:arrow-optics-ksp-plugin:1.2.4")
}

Causes this error when building:

Duplicate class arrow.optics.CopyKt found in modules arrow-optics-compose-jvm-1.2.4.jar -> arrow-optics-compose-jvm-1.2.4 (io.arrow-kt:arrow-optics-compose-jvm:1.2.4) and arrow-optics-jvm-1.2.4.jar -> arrow-optics-jvm-1.2.4 (io.arrow-kt:arrow-optics-jvm:1.2.4)

Go to the documentation to learn how to Fix dependency resolution errors.

Removing arrow-core and arrow-optics does not help.