Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-268

Use Project Lombok for the entities generated on Forge

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.0.Beta1
    • Fix Version/s: None
    • Component/s: Builtin Plugins
    • Labels:
      None

      Description

      To avoid boilerplate code, it would be interesting that the entities created on Forge use Lombok.

      As the latest version says (0.10.0), dependency on lombok.jar in runtime is not necessary, so it would be a cool feature to generate getters and setters (also toString and equals/hashCode) without requiring any additional code.

        Gliffy Diagrams

          Activity

          Hide
          gastaldi George Gastaldi added a comment -

          Here is the URL: http://projectlombok.org/

          Show
          gastaldi George Gastaldi added a comment - Here is the URL: http://projectlombok.org/
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          I like the idea of Lombok, but the issue I see with it is that I think it requires plugins for the IDE in order to get things to work. (And not throw up lots of compile errors.) Can you tell me if that's still the case?

          Show
          lincolnthree Lincoln Baxter III added a comment - I like the idea of Lombok, but the issue I see with it is that I think it requires plugins for the IDE in order to get things to work. (And not throw up lots of compile errors.) Can you tell me if that's still the case?
          Hide
          gastaldi George Gastaldi added a comment -

          Yeah, but there is an installer that you run with

          java -jar lombok.jar
          

          that already configures all the stuff needed.

          If you place lombok in the pom.xml, the resulting WAR will be fine.

          Show
          gastaldi George Gastaldi added a comment - Yeah, but there is an installer that you run with java -jar lombok.jar that already configures all the stuff needed. If you place lombok in the pom.xml, the resulting WAR will be fine.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          I'd welcome a plugin to do this, but I don't really think it should be a built-in feature of forge.

          Show
          lincolnthree Lincoln Baxter III added a comment - I'd welcome a plugin to do this, but I don't really think it should be a built-in feature of forge.

            People

            • Assignee:
              Unassigned
              Reporter:
              gastaldi George Gastaldi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development