Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19558

Manage protobuf to build and test with a single deterministic version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0-RC2, 4.0.0
    • None
    • None
    • Unknown

    Description

      There are various protobuf related version properties in camel-parent but they are not used everywhere throughout the source tree and therefore several versions are pulled during the build:

      $  mvn org.l2x6.cq:cq-prod-maven-plugin:4.4.0:find-dependency -N '-Dcq.gavPattern=com.google.protobuf'
      ...
      [WARNING] Found org.apache.camel:camel-test-infra-hdfs:4.0.0-SNAPSHOT:jar
              -> org.apache.hadoop:hadoop-minicluster:3.3.5:jar
              -> org.apache.hadoop:hadoop-common:3.3.5:jar:tests
              -> com.google.protobuf:protobuf-java:2.5.0:jar
      [WARNING] Found org.apache.camel:camel-debezium-postgres:4.0.0-SNAPSHOT:jar
              -> io.debezium:debezium-connector-postgres:2.3.0.Final:jar
              -> com.google.protobuf:protobuf-java:3.19.6:jar
      [WARNING] Found org.apache.camel:camel-etcd3:4.0.0-SNAPSHOT:jar
              -> io.etcd:jetcd-core:0.7.5:jar
              -> io.etcd:jetcd-grpc:0.7.5:jar
              -> io.grpc:grpc-protobuf:1.56.0:jar
              -> com.google.protobuf:protobuf-java:3.22.3:jar
      [WARNING] Found org.apache.camel:camel-etcd3:4.0.0-SNAPSHOT:jar
              -> io.etcd:jetcd-core:0.7.5:jar
              -> io.etcd:jetcd-grpc:0.7.5:jar
              -> io.grpc:grpc-grpclb:1.56.0:jar
              -> com.google.protobuf:protobuf-java-util:3.22.3:jar
      [WARNING] Found org.apache.camel:camel-google-bigquery:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-bigquery:2.19.1:jar
              -> com.google.protobuf:protobuf-java-util:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-bigquery:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-bigquery:2.19.1:jar
              -> com.google.protobuf:protobuf-java:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-functions:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-functions:2.2.0:jar
              -> com.google.protobuf:protobuf-java:3.17.3:jar
      [WARNING] Found org.apache.camel:camel-google-functions:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-functions:2.2.0:jar
              -> com.google.protobuf:protobuf-java-util:3.17.3:jar
      [WARNING] Found org.apache.camel:camel-google-pubsub:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-pubsub:1.121.0:jar
              -> com.google.protobuf:protobuf-java:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-pubsub:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-pubsub:1.121.0:jar
              -> com.google.protobuf:protobuf-java-util:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-secret-manager:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-secretmanager:2.2.0:jar
              -> com.google.protobuf:protobuf-java:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-secret-manager:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-secretmanager:2.2.0:jar
              -> com.google.protobuf:protobuf-java-util:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-storage:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-storage:2.15.1:jar
              -> com.google.protobuf:protobuf-java:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-google-storage:4.0.0-SNAPSHOT:jar
              -> com.google.cloud:google-cloud-storage:2.15.1:jar
              -> com.google.protobuf:protobuf-java-util:3.21.10:jar
      [WARNING] Found org.apache.camel:camel-grpc:4.0.0-SNAPSHOT:jar
              -> io.grpc:grpc-protobuf:1.56.0:jar
              -> com.google.protobuf:protobuf-java:3.22.3:jar
      [WARNING] Found org.apache.camel:camel-hdfs:4.0.0-SNAPSHOT:jar
              -> org.apache.hadoop:hadoop-common:3.3.5:jar
              -> com.google.protobuf:protobuf-java:2.5.0:jar
      [WARNING] Found org.apache.camel:camel-protobuf:4.0.0-SNAPSHOT:jar
              -> com.google.protobuf:protobuf-java:3.19.6:jar
      [WARNING] Found org.apache.camel:camel-protobuf:4.0.0-SNAPSHOT:jar
              -> com.google.protobuf:protobuf-java-util:3.19.6:jar
      [WARNING] Found org.apache.camel:camel-salesforce:4.0.0-SNAPSHOT:jar
              -> io.grpc:grpc-protobuf:1.56.0:jar
              -> com.google.protobuf:protobuf-java:3.22.3:jar
      [WARNING] Found org.apache.camel:camel-salesforce-codegen:4.0.0-SNAPSHOT:jar
              -> org.apache.camel:camel-salesforce:4.0.0-SNAPSHOT:jar
              -> io.grpc:grpc-protobuf:1.56.0:jar
              -> com.google.protobuf:protobuf-java:3.22.3:jar
      [WARNING] Found org.apache.camel.maven:camel-salesforce-maven-plugin:4.0.0-SNAPSHOT:jar
              -> org.apache.camel:camel-salesforce-codegen:4.0.0-SNAPSHOT:jar
              -> org.apache.camel:camel-salesforce:4.0.0-SNAPSHOT:jar
              -> io.grpc:grpc-protobuf:1.56.0:jar
              -> com.google.protobuf:protobuf-java:3.22.3:jar
      [WARNING] Found org.apache.camel:camel-zeebe:4.0.0-SNAPSHOT:jar
              -> io.camunda:zeebe-client-java:8.1.9:jar
              -> com.google.protobuf:protobuf-java:3.21.12:jar
      

      We should try to manage a single version so that upgrades and testing get more deterministic.

      The same holds for com.google.protobuf:protoc and com.google.api.grpc:proto-google-common-protos

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ppalaga Peter Palaga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: