[
https://issues.apache.org/jira/browse/BEAM-11823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286194#comment-17286194
]
Kyle Weaver commented on BEAM-11823:
------------------------------------
We can work around this by making the permitUnusedDeclared configuration use
enforcedPlatform(library.java.google_cloud_platform_libraries_bom).
https://github.com/ibzib/beam/commit/ef122510cdc719aa00badb78f0f6c4b30ef10b8b
> permitUnusedDeclared doesn't work with bom libraries.
> ------------------------------------------------------
>
> Key: BEAM-11823
> URL: https://issues.apache.org/jira/browse/BEAM-11823
> Project: Beam
> Issue Type: Bug
> Components: build-system
> Reporter: Kyle Weaver
> Priority: P2
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)