Skip to content

Setting up a development environment for Microserver

johnmcclean-aol edited this page Feb 24, 2015 · 1 revision

Microserver requires Java 8

Microserver uses Gradle as a build system

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

Setting up Lombok

Microserver uses Lombok a Java compile stage annotation processor to reduce boilerplate code. Microserver 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