It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting various compile errors when I use clover during build

Jay Kirby Aug 25, 2017

I have a gradle java project that builds fine without clover, but when I add the appropriate build steps for gradle I get compile time errors like:

[javac] /var/folders/jw/cml8j6ps1cs6bxpvnk4xn2vm7jkkd2/T/clover7201873317523399874.tmp/com/yaddayadda/common/jdbc/ error: package lombok does not exist
[javac] import lombok.Getter;

There are other imports that a failing also

1 answer

0 votes
Grzegorz Lewandowski Atlassian Team Aug 28, 2017

Do you use Lombok project ? I'd say that you didn't setup Lombok and Clover right. 

Both projects change your code base which means you need to set them up in a proper order to make both of them working at the same time. 


Just check if Clover instrumented code has Lombok generated code. I suppose it doesn't therefore you're getting the compilation errors. 

Jay Kirby Aug 28, 2017

I'm pretty sure it's setup correctly in the root gradle project since most of the subprojects build correctly.  I have one subproject that fails though where clover instrumented code can't seem to find dependencies during compile. Lombok is just one of the dependencies it can't find, but, it also can't find other references:

/var/folders/jw/cml8j6ps1cs6bxpvnk4xn2vm7jkkd2/T/clover256160776783611236.tmp/com/yadda/yadda/common/spark/ error: cannot find symbol
[javac] protected SparkConf sparkConfiguration;
[javac] ^
[javac] symbol: class SparkConf
[javac] location: class AbstractSparkJob

Jay Kirby Aug 28, 2017

I think this is the underlying issue -

Seem the dependencies with issues are compileOnly and thus don't seem to work with clover.

Jay Kirby Aug 30, 2017

I believe this is actually a problem with the gradle plugin, so I opened a defect there -


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

186 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you