Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.85 KB

File metadata and controls

66 lines (53 loc) · 1.85 KB

dropwizard-minnal

A Dropwizard bundle that enhances the entity classes using Minnal instrumentation module and auto generates the REST APIs.

Getting Started

Setting Up Maven

Include the following maven dependencies in your dropwizard application,

   <dependencies>
     <dependency>
  		<groupId>org.minnal</groupId>
  		<artifactId>dropwizard-minnal</artifactId>
  		<version>0.0.4</version>
  	</dependency>
  	<dependency>
		<groupId>org.minnal</groupId>
		<artifactId>dropwizard-minnal-test</artifactId>
		<version>0.0.4</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.minnal</groupId>
		<artifactId>minnal-generator</artifactId>
		<version>2.0.0-rc.1</version>
	</dependency>
   </dependencies>
   
   <repositories>
    <repository>
      <id>activejpa-repo</id>
      <url>https://raw.github.com/ActiveJpa/activejpa/mvn-repo/releases</url>
    </repository>
    <repository>
      <id>minnal-repo</id>
      <url>https://raw.github.com/minnal/mvn-repo/master/releases</url>
    </repository>
  </repositories>

NOTE: This version depends on the dropwizard branch and metrics branch. You will have to build the snapshot versions from these repos locally to use this module.

Adding the bundle to your application

public class TestApplication extends Application<TestConfiguration> {

	@Override
	public void initialize(Bootstrap<TestConfiguration> bootstrap) {
		 bootstrap.addBundle(new MinnalBundle(new String[] {"org.minnal.dropwizard.test"}));
	}
	
	@Override
	public void run(TestConfiguration configuration, Environment environment) throws Exception {
	}
}

License

ActiveJPA is offered under Apache License, Version 2.0