You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Peter Palaga (Jira)" <ji...@apache.org> on 2023/06/13 11:58:00 UTC

[jira] [Created] (CAMEL-19442) Manage Gson to build and test with a single deterministic version

Peter Palaga created CAMEL-19442:
------------------------------------

             Summary: Manage Gson to build and test with a single deterministic version
                 Key: CAMEL-19442
                 URL: https://issues.apache.org/jira/browse/CAMEL-19442
             Project: Camel
          Issue Type: Improvement
            Reporter: Peter Palaga


There is gson-version at 2.10.1 in camel-parent and it is used only in several components. However, Gson is pulled by a few more components transitively:

{code}
$ ./mvnw org.l2x6.cq:cq-prod-maven-plugin:2.23.0:find-dependency -N -e '-Dcq.gavPattern=com.google.code.gson:*'
...
[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.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-couchdb:4.0.0-SNAPSHOT:jar:
        -> org.lightcouch:lightcouch:0.2.0:jar:
        -> com.google.code.gson:gson:2.8.2:jar:
[WARNING] Found org.apache.camel:camel-digitalocean:4.0.0-SNAPSHOT:jar:
        -> com.myjeeva.digitalocean:digitalocean-api-client:2.17:jar:
        -> com.google.code.gson:gson:2.7:jar:
[WARNING] Found org.apache.camel:camel-djl:4.0.0-SNAPSHOT:jar:
        -> ai.djl:api:0.21.0:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-etcd3:4.0.0-SNAPSHOT:jar:
        -> io.grpc:grpc-core:1.47.0:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-geocoder:4.0.0-SNAPSHOT:jar:
        -> com.google.maps:google-maps-services:2.2.0:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-github:4.0.0-SNAPSHOT:jar:
        -> org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5:jar:
        -> com.google.code.gson:gson:2.2.2: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.code.gson:gson:2.10:jar:
[WARNING] Found org.apache.camel:camel-google-calendar:4.0.0-SNAPSHOT:jar:
        -> com.google.http-client:google-http-client-gson:1.42.3:jar:
        -> com.google.code.gson:gson:2.10:jar:
[WARNING] Found org.apache.camel:camel-google-drive:4.0.0-SNAPSHOT:jar:
        -> com.google.http-client:google-http-client-gson:1.42.3:jar:
        -> com.google.code.gson:gson:2.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.code.gson:gson:2.8.8:jar:
[WARNING] Found org.apache.camel:camel-google-mail:4.0.0-SNAPSHOT:jar:
        -> com.google.http-client:google-http-client-gson:1.42.3:jar:
        -> com.google.code.gson:gson:2.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.code.gson:gson:2.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.code.gson:gson:2.10:jar:
[WARNING] Found org.apache.camel:camel-google-sheets:4.0.0-SNAPSHOT:jar:
        -> com.google.http-client:google-http-client-gson:1.42.3:jar:
        -> com.google.code.gson:gson:2.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.code.gson:gson:2.10:jar:
[WARNING] Found org.apache.camel:camel-grpc:4.0.0-SNAPSHOT:jar:
        -> io.grpc:grpc-netty:1.54.0:jar:
        -> io.grpc:grpc-core:1.54.0:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-gson:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-hdfs:4.0.0-SNAPSHOT:jar:
        -> org.apache.hadoop:hadoop-common:3.3.5:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-huaweicloud-functiongraph:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-huaweicloud-iam:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-huaweicloud-obs:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-hyperledger-aries:4.0.0-SNAPSHOT:jar:
        -> io.nessus.aries:nessus-aries-common:0.2.0:jar:
        -> network.idu.acapy:aries-client-python:0.7.25:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-influxdb2:4.0.0-SNAPSHOT:jar:
        -> com.influxdb:influxdb-client-java:6.8.0:jar:
        -> com.influxdb:influxdb-client-core:6.8.0:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-ironmq:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-jira:4.0.0-SNAPSHOT:jar:
        -> com.google.oauth-client:google-oauth-client:1.34.0:jar:
        -> com.google.http-client:google-http-client-gson:1.41.8:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-jsonata:4.0.0-SNAPSHOT:jar:
        -> com.ibm.jsonata4java:JSONata4Java:2.2.4:jar:
        -> com.google.code.gson:gson:2.10:jar:
[WARNING] Found org.apache.camel:camel-olingo2-api:4.0.0-SNAPSHOT:jar:
        -> org.apache.olingo:olingo-odata2-core:2.0.11:jar:
        -> com.google.code.gson:gson:2.4:jar:
[WARNING] Found org.apache.camel:camel-olingo2:4.0.0-SNAPSHOT:jar:
        -> org.apache.camel:camel-olingo2-api:4.0.0-SNAPSHOT:jar:
        -> org.apache.olingo:olingo-odata2-core:2.0.11:jar:
        -> com.google.code.gson:gson:2.4:jar:
[WARNING] Found org.apache.camel:camel-opentelemetry:4.0.0-SNAPSHOT:jar:
        -> io.grpc:grpc-netty-shaded:1.54.0:jar:
        -> io.grpc:grpc-core:1.54.0:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-protobuf:4.0.0-SNAPSHOT:jar:
        -> com.google.protobuf:protobuf-java-util:3.19.6:jar:
        -> com.google.code.gson:gson:2.8.6:jar:
[WARNING] Found org.apache.camel:camel-pubnub:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-salesforce:4.0.0-SNAPSHOT:jar:
        -> io.grpc:grpc-netty:1.54.0:jar:
        -> io.grpc:grpc-core:1.54.0:jar:
        -> com.google.code.gson:gson:2.9.0: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-netty:1.54.0:jar:
        -> io.grpc:grpc-core:1.54.0:jar:
        -> com.google.code.gson:gson:2.9.0: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-netty:1.54.0:jar:
        -> io.grpc:grpc-core:1.54.0:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-slack:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-splunk:4.0.0-SNAPSHOT:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-spring-redis:4.0.0-SNAPSHOT:jar:
        -> redis.clients:jedis:4.4.2:jar:
        -> com.google.code.gson:gson:2.10.1:jar:
[WARNING] Found org.apache.camel:camel-swift:4.0.0-SNAPSHOT:jar:
        -> com.prowidesoftware:pw-iso20022:SRU2022-10.0.0:jar:
        -> com.google.code.gson:gson:2.9.0:jar:
[WARNING] Found org.apache.camel:camel-zeebe:4.0.0-SNAPSHOT:jar:
        -> io.camunda:zeebe-client-java:8.1.9:jar:
        -> io.grpc:grpc-core:1.49.2:jar:
        -> com.google.code.gson:gson:2.9.0:jar:

{code}

As seen above, several different versions are pulled. This leads to testing and runtime inconsistencies.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)