Skip to content

Using Gradle

bclinthall edited this page Mar 7, 2017 · 10 revisions

Using gradle

Run gradle test to test. It won’t mention the tests unless one fails. If one fails, it will tell you which one, and also tell you how to get more information.

gradle build builds the project into a jar file. The jar will be at /build/libs/scatt.jar You can run the jar by going there and calling java -cp scatt.jar Scatt

gradle check runs checkstyle. The checkstyle.xml should be in /config/ When checkstyle fails, a report is generated and stored in /build/reports/checkstyle/

All the magic happens in the build.gradle file in the project root. I added one line there to enable checkstyle in gradle, and another to allow us to use org.json.* for parsing. It really feels like magic.

Clone this wiki locally