Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

gwt + gradle + lombok issues resolved #104

@DALDEI

Description

@DALDEI

A known problem (from reading this list), I found a refinement to the solution proposed.
The issue is if you are resolving lombok.jar you cant just use -javaagent:lombok.jar=ECJ
You need the full path

This works ... maybe it can be built into gwt-gradle-plugin ?


configurations { 
 lombok
}
dependencies {
  lombok 'org.projectlombok:lombok+'
} 
ext {
   lombok = configurations.lombok.asPath
}

compileGwt {
  jvmArgs "-javaagent:${lombok}=ECJ"
}

draftCompileGwt {
  jvmArgs "-javaagent:${lombok}=ECJ"
}

One Caveot -- you cannot use some class level annotations like @DaTa or @NoArgsConstructor,
but you can use

@Getter @Setter
class MyClass {
  int field ;
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions