Setting up

Add the following dependency to your project:


Then add the @Dekorate annotation to one of your Java source files.

package org.acme;

import io.dekorate.annotation.Dekorate;

public class Application {

Note: It doesn’t have to be the Main class. Next time you perform a build, using something like:


mvn clean package

The generated manifests can be found under target/classes/META-INF/dekorate.

Configuration styles

The generated manifests can be customized either using annotations or configuration properties/yml.

Using annotations

The @OpenshiftApplication under io.dekorate.openshift.annotation is a @Dekorate alternative through which the user can specify all sorts of customization, For example to set the replicas to 2:

package org.acme;

import io.dekorate.openshift.annotation.OpenshiftApplication;

public class Application {

Using framework configuration

The same can be achieved using plain old configuration (e.g.application.properties):


**A complete reference on all the supported properties can be found in the configuration options guide.