[ 
https://issues.apache.org/jira/browse/JCLOUDS-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858324#comment-15858324
 ] 

Ignasi Barrera commented on JCLOUDS-1225:
-----------------------------------------

I took my time to paste a working example because in the one you pasted there 
are several mistakes:

{quote}
<shadedPattern>shaded.jclouds.</shadedPattern>
{quote}

The package should not end with a {{.}}, that's why you see some double {{..}} 
in the stacktraces aobut classes not found.
You are also relocating jclouds, which should not be done, and others.

Given that, I took my time to put an example you can easily copy and paste. I'm 
pretty confident it will work, even if it is as simple as the Jenkins plugin 
one... Because the shade configuration required to isolate the Guava version 
jclouds uses is simply that simple. There is no need for esoteric tweaks. Just 
a simple configuration, as I've been trying to explain from the beginning. I'm 
sure that example will work in your use case too.

Could you spend a couple minutes more of your time by testing my example?

> Guava 21 compatibility
> ----------------------
>
>                 Key: JCLOUDS-1225
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1225
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-core
>    Affects Versions: 2.0.0
>            Reporter: Ian Springer
>              Labels: guava
>
> The below classes use com.google.common.base.Objects.ToStringHelper, which 
> has been deprecated since Guava 18, and has been removed in Guava 21. This 
> makes it impossible to use jclouds in a project using Guava 21. Please either 
> upgrade to Guava 18+ and switch to using 
> com.google.common.base.MoreObjects.ToStringHelper, or drop the usage of 
> ToStringHelper altogether. This will allow my project to upgrade to Guava 21 
> without having to use a fork of jclouds.
> * org/jclouds/apis/internal/BaseApiMetadata.java
> * org/jclouds/domain/internal/LocationImpl.java
> * org/jclouds/domain/internal/MutableResourceMetadataImpl.java
> * org/jclouds/domain/internal/ResourceMetadataImpl.java
> * org/jclouds/http/HttpMessage.java
> * org/jclouds/http/HttpRequest.java
> * org/jclouds/http/HttpResponse.java
> * org/jclouds/internal/BaseView.java
> * org/jclouds/providers/internal/BaseProviderMetadata.java
> * org/jclouds/reflect/InvocationSuccess.java
> * org/jclouds/rest/internal/BaseHttpApiMetadata.java
> * org/jclouds/rest/suppliers/URIFromStringSupplier.java



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to