Skip to content

Support for add kmp-grpc-core dependency manually to exclude transitive dependencies #101

@ebicola

Description

@ebicola

This lib adds many transitive libs to projects using this lib and many of them can be excluded and kmp grpc works fine without them. Currently the plugin adds the kmp-grpc-core dependency in the ProjectSetupConfiguration.kt file. I tried to also add kmp-grpc-core with some excludes manually in my build.gradle.kts script, but this doesn't work with the plugin adding kmp-grpc-core as well. I now used the io.github.timortel.kmp-grpc.internal property in gradle.properties so the plugin doesn't add kmp-grpc-core to my dependencies. With that my excludes work again, but it feels like I'm using some internal stuff. Can you add official support for adding kmp-grpc-core manually? Maybe the plugin can just don't add the dependency if it is already there?
Maybe you can also think of adding some excludes to the libs used by this project as well? I currently exclude the following libs:

            api(libs.kmpgrpc.core.get().toString()) {
                exclude("javax.annotation", "javax.annotation-api")
                exclude("org.checkerframework", "checker-qual")
                exclude("com.google.code.findbugs", "jsr305")
                exclude("com.google.errorprone", "error_prone_annotations")
                exclude("org.codehaus.mojo", "animal-sniffer-annotations")
                exclude("com.google.j2objc", "j2objc-annotations")
                exclude("com.google.guava", "failureaccess")
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions