Skip to content

Setting up a development environment for SimpleReact

johnmcclean-aol edited this page Feb 3, 2015 · 3 revisions

SimpleReact requires Java 8

SimpleReact uses Gradle as a build system

You can clone SimpleReact from the github repo and import as a Gradle project into your favourite IDE.

Setting up Lombok

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

Clone this wiki locally