Compilation error after guava shading

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation error after guava shading

Vasiliki Kalavri
Hi squirrels,

I have a maven project that only depends on flink-gelly, but after the
guava shading change I get a compilation error in one of the classes that
is using the primitives library:

"package com.google.common does not exist".

Is this to be expected? Do I need to add anything to my pom?

Thanks!
-Vasia.
Reply | Threaded
Open this post in threaded view
|

Re: Compilation error after guava shading

Robert Metzger
Hi,

you have to add guava as a dependency to your project.
With the shading, users won't see Flink depending on Guava anymore. This
allows them (users) to use any guava version they want.



On Mon, Mar 23, 2015 at 5:11 PM, Vasiliki Kalavri <[hidden email]
> wrote:

> Hi squirrels,
>
> I have a maven project that only depends on flink-gelly, but after the
> guava shading change I get a compilation error in one of the classes that
> is using the primitives library:
>
> "package com.google.common does not exist".
>
> Is this to be expected? Do I need to add anything to my pom?
>
> Thanks!
> -Vasia.
>
Reply | Threaded
Open this post in threaded view
|

Re: Compilation error after guava shading

Vasiliki Kalavri
Awesome, thanks Robert!
On Mar 23, 2015 5:15 PM, "Robert Metzger" <[hidden email]> wrote:

> Hi,
>
> you have to add guava as a dependency to your project.
> With the shading, users won't see Flink depending on Guava anymore. This
> allows them (users) to use any guava version they want.
>
>
>
> On Mon, Mar 23, 2015 at 5:11 PM, Vasiliki Kalavri <
> [hidden email]
> > wrote:
>
> > Hi squirrels,
> >
> > I have a maven project that only depends on flink-gelly, but after the
> > guava shading change I get a compilation error in one of the classes that
> > is using the primitives library:
> >
> > "package com.google.common does not exist".
> >
> > Is this to be expected? Do I need to add anything to my pom?
> >
> > Thanks!
> > -Vasia.
> >
>