Skip to content

Commit

Permalink
FAB-5477 Jar manifest add attrib identifying build
Browse files Browse the repository at this point in the history
PS 2: Addressed Jim's review
PS 3: dash preferred over underscore

adds:
Manifest-Version: 1.0
git-branch: master
git-commit_id: b1caedff74319f3da89d322f3d597a3baade5c78
git-commit-time: 26.07.2017 @ 10:26:53 EDT
fabric-sdk-java-version: 1.0.1

Change-Id: I2d287196d591d67e53af3d3ce4c53ffba9e6f074
Signed-off-by: rickr <cr22rc@gmail.com>
  • Loading branch information
cr22rc committed Jul 26, 2017
1 parent 7640986 commit 6878f89
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.hyperledger.fabric-sdk-java</groupId>
<artifactId>fabric-sdk-java</artifactId>
<packaging>jar</packaging>
<version>1.0.1-SNAPSHOT</version>
<version>${fabric.sdk.java.version}-SNAPSHOT</version>
<name>fabric-java-sdk</name>
<description>Java SDK for Hyperledger fabric project</description>
<url>https://www.hyperledger.org/community/projects</url>
Expand All @@ -28,6 +28,7 @@
<tag>fabric-sdk-java-1.0</tag>
</scm>
<properties>
<fabric.sdk.java.version>1.0.1</fabric.sdk.java.version>
<grpc.version>1.5.0</grpc.version><!-- CURRENT_GRPC_VERSION -->
<bouncycastle.version>1.57</bouncycastle.version>
<httpclient.version>4.5.3</httpclient.version>
Expand Down Expand Up @@ -467,6 +468,38 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.2.2</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<git-commit-id>${git.commit.id}</git-commit-id>
<git-branch>${git.branch}</git-branch>
<git-commit-time>${git.commit.time}</git-commit-time>
<fabric-sdk-java-version>${fabric.sdk.java.version}</fabric-sdk-java-version>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</build>
<distributionManagement>
Expand Down

0 comments on commit 6878f89

Please sign in to comment.