You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a modular project with Lombok as a dependency, it needs to be added to the module-info.java of the project. However, it needs to be declared as a static dependency:
modulemymod {
requiresstaticlombok;
}
This is not documented anywhere I could see. IDEs will add the module dependency for you when they detect that Lombok classes are used, but they will do so without static. Then when the project is built and run, it will result in a "module lombok not found" error.
Maybe I'm the only one who didn't think about adding static, but I propose that this info be documented. Perhaps as an entry under the "Install" menu on the website, named "module-info" or "modular project", though it's not installation.
The text was updated successfully, but these errors were encountered:
When creating a modular project with Lombok as a dependency, it needs to be added to the
module-info.java
of the project. However, it needs to be declared as a static dependency:This is not documented anywhere I could see. IDEs will add the module dependency for you when they detect that Lombok classes are used, but they will do so without
static
. Then when the project is built and run, it will result in a "module lombok not found" error.Maybe I'm the only one who didn't think about adding
static
, but I propose that this info be documented. Perhaps as an entry under the "Install" menu on the website, named "module-info" or "modular project", though it's not installation.The text was updated successfully, but these errors were encountered: