stag-java icon indicating copy to clipboard operation
stag-java copied to clipboard

version 2.6.0 creates a conflict with dagger

Open demonar opened this issue 6 years ago • 2 comments

Issue Summary

the moment i update from 2.5.0 to 2.6.0 dagger stops working, i get an error on kapt

Reproduction Steps

create a project that contains kotlin classes that use dagger and try to add classes that use stag.

Expected Behavior

should compile with both libraries as in version 2.5.0

Actual Behavior

breaks with error: "[ComponentProcessor:MiscError] dagger.internal.codegen.ComponentProcessor was unable to process this class because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code."

demonar avatar Jun 06 '19 15:06 demonar

Try excluding the nullability annotations from the stag library, there must a conflict between the class declarations:

implementation ("com.vimeo.stag:stag-library:2.6.0") {
    exclude group: 'org.jetbrains', module: 'annotations'
}

I think that stag should probably be using org.jetbrains:annotations:17.0.0 instead of org.jetbrains:annotations-java5:16.0.2@jar.

anthonycr avatar Sep 05 '19 13:09 anthonycr

Rather you need:

implementation ("com.vimeo.stag:stag-library:2.6.0") {
    exclude group: 'org.jetbrains', module: 'annotations-java5'
}

gjsalot avatar Jun 25 '21 14:06 gjsalot