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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 0.2-incubating
    • Fix Version/s: 0.2-incubating
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: