-
Notifications
You must be signed in to change notification settings - Fork 212
Setting up a development environment for Microserver
You can clone Microserver from the github repo and import as a Gradle project into your favourite IDE.
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