# compose

David Albers

01/11/2021, 5:24 PM
I have Compose code in a separate module. When I try to add the Compose module to the main module, the
libraries get bumped to alpha for the whole project. Anyone know what I’m doing wrong?
(I noticed this because adding the module caused lint errors due to deprecated functions in the alpha navigation libraries)
I already have this in the Compose module:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
    kotlinOptions {
        jvmTarget = "1.8"
        freeCompilerArgs += ["-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check"]
Update- I added
exclude group: 'androidx.fragment'
to the module import like so:
Copy code
implementation(project(':composelibname')) {
  exclude group: 'androidx.fragment'
this excludes the part that was causing lint errors I’m pretty sure this isn’t the correct solution 😄 but I think I understand what’s happening
If compose has a transitive dependency you're forcing it use an older version than it was tested with