Testcontainers-java: Project Lombok plugin is required for contributors using IntelliJ - not documented

Created on 28 Mar 2016  路  10Comments  路  Source: testcontainers/testcontainers-java

Lots of methods are missing, probably due to Lombok not activating its code generation when importing Maven projects to IntelliJ.

help wanted typbug

Most helpful comment

Ok, so apparently you need to install Lombok plugin for IntelliJ.
If you want I can open a PR for adding this to the README - adding a CONTRIBUE section

All 10 comments

Ok, so apparently you need to install Lombok plugin for IntelliJ.
If you want I can open a PR for adding this to the README - adding a CONTRIBUE section

Thanks, and sorry you encountered this. There's a section on Contributing in docs/index.md. Perhaps a link to that in the README would also be a useful thing to have!

By the way, I've faced with the same and even wanted to raise some issues. :) However, after installing Lombok plugin, everything was resolved.

:(

Much as I like some of the conveniences of Lombok, perhaps it would be a good idea to remove it...

@rnorth Maybe switch to Kotlin :)

Using lombok also means that the maven sources don't look correct in IntelliJ. When using the testcontainers artifact in another project and downloading the source, it still contains all the lombok annotations and IntelliJ then shows lots of errors because all the processing isn't done. This is even the case if the plugin is instal in IntelliJ.

@buckett to avoid IDEA complaining about binary changes one can use Delombok ( https://projectlombok.org/features/delombok.html ), maybe it makes sense to apply http://awhitford.github.io/lombok.maven/lombok-maven-plugin/ for distribution of TestContainers.

@bsideup I'd be in favour of adding the delombok to the sources artifact, although I can see the point of keeping the sources exactly as it was when compiling the artifact.

Delombok added in 1.7.0, we also migrated to Gradle and recommend compiling the project with "Delegate to Gradle" option on.

I assume we can close this issue now :)

Delombok tasks doesn't seem to work though?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

McKratt picture McKratt  路  4Comments

naderghanbari picture naderghanbari  路  3Comments

vmassol picture vmassol  路  3Comments

michael-simons picture michael-simons  路  3Comments

dabraham02124 picture dabraham02124  路  3Comments