BuildConstants.java

  1. /*
  2.  * #%L
  3.  * wcm.io
  4.  * %%
  5.  * Copyright (C) 2015 wcm.io
  6.  * %%
  7.  * Licensed under the Apache License, Version 2.0 (the "License");
  8.  * you may not use this file except in compliance with the License.
  9.  * You may obtain a copy of the License at
  10.  *
  11.  *      http://www.apache.org/licenses/LICENSE-2.0
  12.  *
  13.  * Unless required by applicable law or agreed to in writing, software
  14.  * distributed under the License is distributed on an "AS IS" BASIS,
  15.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16.  * See the License for the specific language governing permissions and
  17.  * limitations under the License.
  18.  * #L%
  19.  */
  20. package io.wcm.devops.conga.tooling.maven.plugin;

  21. import org.apache.maven.model.Plugin;

  22. /**
  23.  * Packaging types
  24.  */
  25. public final class BuildConstants {

  26.   private BuildConstants() {
  27.     // constants only
  28.   }

  29.   /**
  30.    * Builds a JAR artifact with definition files (roles, templates, environments are possible).
  31.    */
  32.   public static final String PACKAGING_DEFINITION = "config-definition";

  33.   /**
  34.    * Classifier for JAR artifact with definition files (roles, templates, environments are possible).
  35.    * This is only used if the packing type of the maven project is not {@link #PACKAGING_DEFINITION}.
  36.    */
  37.   public static final String CLASSIFIER_DEFINITION = "config-definition";

  38.   /**
  39.    * File extension for the artifact with definition files (roles, templates, environments are possible).
  40.    */
  41.   public static final String FILE_EXTENSION_DEFINITION = "jar";

  42.   /**
  43.    * Builds a ZIP artifact with the generated configuration.
  44.    */
  45.   public static final String PACKAGING_CONFIGURATION = "config";

  46.   /**
  47.    * Classifier for ZIP artifact with the generated configuration.
  48.    * This is only used if the packing type of the maven project is not {@link #PACKAGING_CONFIGURATION}.
  49.    */
  50.   public static final String CLASSIFIER_CONFIGURATION = "config";

  51.   /**
  52.    * File extension for artifact with the generated configuration.
  53.    */
  54.   public static final String FILE_EXTENSION_CONFIGURATION = "zip";

  55.   /**
  56.    * Properties file containing version information about CONGA Maven Plugin version and CONGA plugin versions.
  57.    */
  58.   public static final String FILE_VERSION_INFO = "version.properties";

  59.   /**
  60.    * CONGA maven plugin key.
  61.    */
  62.   public static final String CONGA_MAVEN_PLUGIN_KEY = Plugin.constructKey("io.wcm.devops.conga", "conga-maven-plugin");

  63. }