influxdata / influxdb-java

Java client for InfluxDB
MIT License
1.19k stars 478 forks source link

chore(release): add implementation information to Jar manifest #847

Closed bednar closed 2 years ago

bednar commented 2 years ago

Proposed Changes

Add default implementation entries to Jar manifest.

It is useful when you want to retrieve the client version by java code:

Package mainPackage = org.influxdb.InfluxDB.class.getPackage();
String version = mainPackage.getImplementationVersion();

The manifest will contain these entries:

  1. Implementation-Title: ${project.name}
  2. Implementation-Version: ${project.version}
  3. Implementation-Vendor: ${project.organization.name}

For more info see: https://maven.apache.org/shared/maven-archiver/.

Checklist