0

I installed Intellij Idea 18.1 and imported a working Gradle Spring Boot 2.0 project as eclipse model. But trying to build project I get bunch of compile erros related to lombok not being recognised. Gradle clearly defined this dependency as

compileOnly('org.projectlombok:lombok')

I get compile errors like:

Error:(8, 14) java: package lombok does not exist

I followed this Stackoverflow link

Lombok annotations do not compile under Intellij idea

In IDEA External library has all the jars except lombok jar.

I do not want to install third party lombok plugin and above link made it working without that plugin.

To import gradle spring boot eclipse project, what is the proper way to do it. I may have missed something here.

ace
  • 11,526
  • 39
  • 113
  • 193

1 Answers1

1

Maybe I misunderstood what you did. If the project uses gradle, import it from the gradle model, not from the eclipse model.

Till Brychcy
  • 2,876
  • 1
  • 18
  • 28