[
https://issues.apache.org/jira/browse/BEAM-13781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kenneth Knowles updated BEAM-13781:
-----------------------------------
Fix Version/s: 2.36.0
Resolution: Fixed
Status: Resolved (was: In Progress)
> grpc-netty-shaded version conflict
> ----------------------------------
>
> Key: BEAM-13781
> URL: https://issues.apache.org/jira/browse/BEAM-13781
> Project: Beam
> Issue Type: Task
> Components: build-system
> Reporter: Tomo Suzuki
> Assignee: Tomo Suzuki
> Priority: P1
> Fix For: 2.36.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Beam 2.36 release candidate had problem for Maven users.
>
> {{Could not resolve version conflict among [}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:2.36.0
> -> com.google.cloud.bigdataoss:gcsio:jar:2.2.4 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.41.1{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.api:gax-grpc:jar:2.8.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.42.1{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.api:gax-grpc:jar:2.8.1 -> io.grpc:grpc-xds:jar:1.42.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}[1.42.1,1.42.1]{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud:google-cloud-bigquerystorage:jar:2.8.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud.bigtable:bigtable-client-core:jar:1.25.1 ->
> com.google.cloud:google-cloud-bigtable:jar:1.27.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.39.0{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud.bigtable:bigtable-client-core:jar:1.25.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.39.0{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud:google-cloud-firestore:jar:3.0.10 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud:google-cloud-pubsublite:jar:1.4.8 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud:google-cloud-pubsub:jar:1.115.1 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> com.google.cloud:google-cloud-spanner:jar:6.17.4 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> io.grpc:grpc-alts:jar:1.43.2 ->
> io.grpc:grpc-netty-shaded:jar:{*}[1.43.2,1.43.2]{*}}}
> {{org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.36.0 ->
> io.grpc:grpc-netty-shaded:jar:{*}1.43.2{*}}}
> {{]}}
>
> How to confirm the effect?
> {*}suztomo@suztomo{*}:{*}~/beam{*}$ ./gradlew -Ppublishing
> -PskipCheckerFramework -p sdks/java/io/google-cloud-platform
> publishMavenJavaPublicationToMavenLocal
> Before the change
> {noformat}
> ~/.m2/repository/org/apache/beam/beam-sdks-java-io-google-cloud-platform/2.37.0-SNAPSHOT/beam-sdks-java-io-google-cloud-platform-2.37.0-SNAPSHOT.pom
> {noformat}
> {noformat}
> <dependency>
> <groupId>com.google.api</groupId>
> <artifactId>gax-grpc</artifactId>
> <scope>compile</scope>
> <exclusions>
> <exclusion>
> <groupId>org.checkerframework</groupId>
> <artifactId>jdk8</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.google.guava</groupId>
> <artifactId>guava-jdk5</artifactId>
> </exclusion>
> <exclusion>
> <groupId>jdk.tools</groupId>
> <artifactId>jdk.tools</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.google.protobuf</groupId>
> <artifactId>protobuf-lite</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.hamcrest</groupId>
> <artifactId>hamcrest-all</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> {noformat}
> After the change (See the exclusion for grpc-netty-shaded)
> {noformat}
> <dependency>
> <groupId>com.google.api</groupId>
> <artifactId>gax-grpc</artifactId>
> <scope>compile</scope>
> <exclusions>
> <exclusion>
> <groupId>org.checkerframework</groupId>
> <artifactId>jdk8</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.google.guava</groupId>
> <artifactId>guava-jdk5</artifactId>
> </exclusion>
> <exclusion>
> <groupId>jdk.tools</groupId>
> <artifactId>jdk.tools</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.google.protobuf</groupId>
> <artifactId>protobuf-lite</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.hamcrest</groupId>
> <artifactId>hamcrest-all</artifactId>
> </exclusion>
> <exclusion>
> <groupId>io.grpc</groupId>
> <artifactId>grpc-netty-shaded</artifactId>
> </exclusion>
> </exclusions>
> {noformat}
>
>
> and see the POM file in .m2/repository?
>
> ./gradlew -Ppublishing -PskipCheckerFramework
> -PjavaLinkageArtifactIds=beam-runners-google-cloud-dataflow-java
> -PjavaLinkageWriteBaseline=baseline.txt :checkJavaLinkage
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)