MarioAriasC / funKTionale

Functional constructs for Kotlin
914 stars 71 forks source link

How to fix issue Duplicate annotations? #48

Closed longquangpham90 closed 2 months ago

longquangpham90 commented 2 months ago

I have use library v1.2 but I have a issue

Duplicate class org.jetbrains.annotations.Nullable found in modules annotations-24.1.0.jar -> jetified-annotations-24.1.0 (org.jetbrains:annotations:24.1.0) and funktionale-all-1.2.jar -> jetified-funktionale-all-1.2 (com.github.MarioAriasC.funKTionale:funktionale-all:1.2)

I tried config, but I can not build project

implementation('com.github.MarioAriasC.funKTionale:funktionale-all:1.2') {
    exclude group: 'org.jetbrains', module: 'annotations'
}

implementation 'org.jetbrains:annotations:24.1.0' // I can remove it

configurations { all { exclude group: 'org.jetbrains', module: 'annotations' } }

`

Pls help solution resolve for it Thank all!

longquangpham90 commented 2 months ago

Thanks! It worked

implementation 'com.github.MarioAriasC.funKTionale:funktionale-composition:1.2' implementation 'com.github.MarioAriasC.funKTionale:funktionale-either:1.2' implementation 'com.github.MarioAriasC.funKTionale:funktionale-option:1.2'