Skip to content

Repository for custom Dropwizard bundles used in CrateKube repositories

License

Notifications You must be signed in to change notification settings

cratekube/dropwizard-bundles

Repository files navigation

dropwizard-bundles

License SemVer Build Status Coverage Status

Repository for custom Dropwizard bundles used in CrateKube repositories

Dropwizard Bundles

api-key-auth

The api-key-auth bundle provides an extension to Dropwizard authc/authz, allowing you to specify api keys that must be sent for requests. Usage of this bundle can be seen in the ApiKeyAuthBundleSpec integration spec. Multiple keys with associated roles can be configured via a Dropwizard configuration file.

Local development

Gradle builds

This project uses gradle for building and testing. We also use the gradle wrapper to avoid downloading a local distribution. The commands below are helpful for building and testing.

  • ./gradlew build compile and build
  • ./gradlew check run static code analysis and tests

Docker builds

We strive to have our builds repeatable across development environments, so we also provide a Docker build to generate the Dropwizard application container. The examples below should be executed from the root of the project.

Running the base docker build:

docker build --target build .

Importing bundles into your Dropwizard apps

This project generates a maven asset for each subproject. To use the bundle in your Dropwizard application you will need to include a dependency using the maven coordinates. To use a bundle include following dependency in your project:

Gradle:

implementation 'io.cratekube.dropwizard-bundles:<subproject-name>:1.0.0'

Maven:

<dependency>
  <groupId>io.cratekube.dropwizard-bundles</groupId>
  <artifactId>subproject-name</artifactId>
  <version>1.0.0</version>
</dependency>

Contributing

If you are interested in contributing to this project please review the contribution guidelines. Thank you for your interest in CrateKube!

About

Repository for custom Dropwizard bundles used in CrateKube repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published