guardrail is available as a modular core, with both sbt and Maven integration. The core can also be run as a stand-alone CLI application, with full support for all features.

guardrail for Dropwizard is generally set up using the maven plugin. This will generate your server or client at build time. The following is an example invocation in a pom.xml file:


For JDK9+ you also need to add javax.annotation:javax.annotation-api dependency:


Prev: What is guardrail? Next: Sample API specification