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

gwt + gradle + lombok issues resolved #104

Open
DALDEI opened this issue Aug 26, 2016 · 0 comments
Open

gwt + gradle + lombok issues resolved #104

DALDEI opened this issue Aug 26, 2016 · 0 comments

Comments

@DALDEI
Copy link

DALDEI commented Aug 26, 2016

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 ;
...
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant