Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-139

Integrate maven version of Tamaya into JSON being exposed in its implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 0.2-incubating
    • 0.2-incubating
    • None
    • None

    Description

      While working on TAMAYA-134 I stumbled upon

      org.apache.tamaya.server.ConfigurationResource
      

      containing the following JSON snippet in its
      version():

      "{ \"version\" : \"Apache Tamaya: 0.2-incubating\" }"
      

      .

      This information should be calculated depending on mvn version information.
      One way is to generate a class with maven-resource-plugin that contains the version such as:

      class Version {
       private String version = "${project.version}";
       public String getVersion() {
         return version;
       }
      }
      

      This class can be used in a static matter in this endpoint.

      Attachments

        Activity

          People

            o.b.fischer Oliver B. Fischer
            pottlinger Philipp Ottlinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: