projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.81k stars 2.37k forks source link

[FEATURE] Support for gradle, update error msg for unsupported compilers. #2336

Open hyunuck opened 4 years ago

hyunuck commented 4 years ago

It seems not support java13.

My compile failed with below message.

warning: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled. Your processor is: org.gradle.api.internal.tasks.compile.processing.IncrementalProcessingEnvironment Lombok supports: sun/apple javac 1.6, ECJ warning: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.

rzwitserloot commented 4 years ago

That's a gradle issue, has nothing to do with javac13. Renaming this issue..

rspilker commented 4 years ago

We have gradle specific code. What exact versions of lombok and gradle are you using?

Andromedids commented 4 years ago

We (my friend and I) have the same problem. Gradle version: 6.1, lombok: 1.18.8

bryan0515 commented 4 years ago

I'm seeing the same issue. Gradle version: 6.2, lombok 1.18.10, java 1.8.0_231

rspilker commented 4 years ago

I've tried to reproduce it using our docker images, both on jdk13 and jdk8.

I've use gradle 6.2.2, and in /workspace/classpath run gradle assemble.

There were no error messages, and class files were created.

So, I haven't been able to reproduce this. Can someone use the docker image and find out what's wrong with this test setup?

alexdefreitas99 commented 4 years ago

This is an issue with java 13, not with gradle

That's a gradle issue, has nothing to do with javac13. Renaming this issue..

That's a java issue! i have tested with java 13 + gradle 6.2 and the problem ocurrs. with java 11 + gradle 6.2 the problem not ocurrs.

alexdefreitas99 commented 4 years ago

This is an issue with java 13, not with gradle

That's a gradle issue, has nothing to do with javac13. Renaming this issue..

That's a java issue! i have tested with java 13 + gradle 6.2 and the problem ocurrs. with java 11 + gradle 6.2 the problem not ocurrs.

@rspilker

luca-filipponi commented 4 years ago

I'm having the same issue, and looks like is based on the java version. If Java version > 12 && lombok version > 1.18.6 I got this message:

You aren't using a compiler supported by lombok, so lombok will not work and has been disabled

I'm using Gradle 6.3.