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

Remove unwanted dependency to google-http-client library

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Current version of this component has an annoying implicit dependency to "com.google.http-client:google-http-client:1.22.0" library, due to the following import in GooglePubsubEndpoint class:

       import com.google.api.client.repackaged.com.google.common.base.Strings;

      The wrong Strings class is being used ( the one from guava repackaged in  google-http-client library, instead of the expected one from com.google.guava )

      This makes very difficult to use this component as soon as we introduced other google-related libraries that bring newer version of `com.google.api-client:google-api-client` : newer version of this library depend on version '1.28.0' of the 'google-http-client' library which does not repackage guava anymore.

      At runtime we simply get a NoClassDefFoundError:

      java.lang.NoClassDefFoundError: com/google/api/client/repackaged/com/google/common/base/Stringsjava.lang.NoClassDefFoundError: com/google/api/client/repackaged/com/google/common/base/Strings at org.apache.camel.component.google.pubsub.GooglePubsubEndpoint.afterPropertiesSet(GooglePubsubEndpoint.java:87)

       

      Could you please fix this wrong import to "Strings" class?

      Thanks.

       

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              mricciuti Matthieu Ricciuti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m