Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368049

Summary: Project Lombok Test Install
Product: z_Archived Reporter: Marcel Bruch <marcel.bruch>
Component: RecommendersAssignee: Marcel Bruch <marcel.bruch>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: adietish, christian.campo, contact, markus.kell.r, matthias.sohn, mn
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Simple Lombok Test Project w/ Maven Tycho Build Configuration none

Description Marcel Bruch CLA 2012-01-06 12:39:55 EST
Project Lombok seems promising. Its setup and use inside Eclipse and for Eclipse projects (including build integration) needs investigation. This bug is for tracking results on setting up Lombok w/ Maven Tycho and Eclipse Code Recommenders as test case, and discussing details about its potential(!) usage at Eclipse.org.


An initial discussion has been started here:
http://dev.eclipse.org/mhonarc/lists/eclipse.org-committers/msg00869.html


To summarize the received responses so far (few of them not using the list):

* no project is currently using it at Eclipse
* there is some interest by several parties to try it
* 4 committers say good things about it
* Lombok "creates an incompatible dialect of the Java language and it modifies the IDE and the compiler in unsupported ways"

To briefly address the latter point:
There is also a "delombok" tool that generates source files that can be used instead of the compiler extension. It seems possible to create compatible source code.

> Lombok can't be shipped with Eclipse in it's current form

Just to be clear:
This post did not intend to ship Lombok with Eclipse. I'm currently evaluating whether it seems valuable to use it to manage some aspects of our codebase at Eclipse. I'll give it a try these days and will probably summarize the results in a blog post. If there is (then) an interested community, we may build a few tools and example build integrations (i.e., Tycho) around it.

Thanks for your comments so far!
Comment 1 Marcel Bruch CLA 2012-01-08 08:42:58 EST
Created attachment 209176 [details]
Simple Lombok Test Project w/ Maven Tycho Build Configuration

Simple project that comes with two Java source files (one annotated w/ Lombok annotation, one without), and a maven tycho build configuration.

Put simple, it works. It uses the delombok feature , i.e., it generates source files from the annotated sources in the src/ folder and puts the generated sources into target/generated-sources/delombok/ (see http://projectlombok.org/features/delombok.html). Tycho picks up the contents of target/generated-sources/delombok/ to build the final jar. The sources in src/ are ignored by tycho.

A integration of lombok into the compile process seem not to work ATM. This approach is preferred over delombok. I'll look on how this could be achieved.

I'll continue by start using lombok for some code recommenders data structs projects. Comments welcome.
Comment 2 Marcel Bruch CLA 2012-01-15 08:41:15 EST
For the records:

I requested a CQ for Lombok: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5966
Comment 3 Marcel Bruch CLA 2013-04-10 01:02:09 EDT
We stopped evaluating lombok some time ago due to performance problems in the IDE. In the meanwhile Lombok may have fixed this but we don't plan to give it a second spin.