Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11823

permitUnusedDeclared doesn't work with bom libraries.

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Workaround
    • None
    • Not applicable
    • build-system
    • None

    Description

      permitUnusedDeclared does not work with any libraries that derive their versions from the GCP bom. The only way to get the dependency checker working for these libraries is to hardcode their version numbers, which defeats the purpose of using the bom in the first place.

      e.g. "permitUnusedDeclared library.java.proto_google_common_protos" results in this error:

      • What went wrong:
        Could not determine the dependencies of task ':sdks:java:extensions:sql:zetasql:analyzeClassesDependencies'.
        > Could not resolve all dependencies for configuration ':sdks:java:extensions:sql:zetasql:permitUnusedDeclared'.
        > Could not find com.google.api.grpc:grpc-google-common-protos:.
        Required by:
        project :sdks:java:extensions:sql:zetasql

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ibzib Kyle Weaver
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: