-
Notifications
You must be signed in to change notification settings - Fork 136
Setting up a development environment for SimpleReact
You can clone SimpleReact from the github repo and import as a Gradle project into your favourite IDE.
SimpleReact uses Lombok a Java compile stage annotation processor to reduce boilerplate code. SimpleReact will compile with Gradle on checkout, but will not compile in your IDE until you install Lombok for that IDE.
Run the Lombok jar, currently version 1.14.2 (available from here http://mvnrepository.com/artifact/org.projectlombok/lombok/1.14.2)). Lombok can be run by double clicking on the jar and then pointing the GUI at your IDE. After installation your IDE will be able to understand all the additional Lombok annotations (@Getter / @Setter, @Wither - for immutable ‘modification’, @Builder etc).
For Eclipse, what it will do is add the following lines to eclipse.ini (in /path/eclipse/Eclipse.app/Contents/MacOS) and drop lombok jar in the same location.
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
oops - my bad