Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid Lombok configuration for multi-module project #501

Open
ojecborec opened this issue Sep 19, 2023 · 1 comment
Open

Valid Lombok configuration for multi-module project #501

ojecborec opened this issue Sep 19, 2023 · 1 comment
Labels

Comments

@ojecborec
Copy link

What is a proper way to make Manifold and Lombok work together? I have a following project that displays warning when compiling with org.apache.maven.plugins:maven-compiler-plugin:3.11.0.

[INFO] --- compiler:3.11.0:compile (default-compile) @ service ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 1 source file with javac [debug target 17] to target/classes
[WARNING] The following options were not recognized by any processor: '[manifold.strings.simple.disabled]'

It works just fine with version 3.10.1.

[INFO] --- compiler:3.10.1:compile (default-compile) @ service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /.../service/target/classes

Here's the response after removing Lombok annotation processor path and compile with version 3.11.0.

[INFO] --- compiler:3.11.0:compile (default-compile) @ service ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 1 source file with javac [debug target 17] to target/classes

demo.zip

@rsmckinney
Copy link
Member

Hi @ojecborec.

TLDR: you can safely ignore this type of warning.

Manifold uses -Akey[=value] javac compiler annotation-style options as a simple, standard way to pass manifold-specific options to the compiler. Although not an annotation processor, manifold can still access these options.

However, as you have discovered, if an annotation processor is used with manifold, such as lombok, the compiler will produce warnings claiming the annotation processor does not acknowledge the Akey options. While technically true, the options are of course used by manifold, therefore you can safely ignore these warnings.

These warnings will be suppressed in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants