Skip to content

Commit

Permalink
Fixes #33: Correctly set manifest properties in both standard and ube…
Browse files Browse the repository at this point in the history
…r jar
  • Loading branch information
ajsquared committed Jan 24, 2016
1 parent 645a700 commit 9e5b7bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ statsd-jvm-profiler is available in Maven Central:
<dependency>
<groupId>com.etsy</groupId>
<artifactId>statsd-jvm-profiler</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
```

Expand All @@ -29,7 +29,7 @@ If you would like an uberjar containing all of the dependencies instead of the s
<dependency>
<groupId>com.etsy</groupId>
<artifactId>statsd-jvm-profiler</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<classifier>jar-with-dependencies</classifier>
</dependency>
```
Expand Down
25 changes: 14 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.etsy</groupId>
<artifactId>statsd-jvm-profiler</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>statsd-jvm-profiler</name>
Expand Down Expand Up @@ -153,6 +153,19 @@
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifestEntries>
<Agent-Class>com.etsy.statsd.profiler.Agent</Agent-Class>
<Premain-Class>com.etsy.statsd.profiler.Agent</Premain-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -169,16 +182,6 @@
</configuration>
</execution>
</executions>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Premain-Class>com.etsy.statsd.profiler.Agent</Premain-Class>
<Agent-Class>com.etsy.statsd.profiler.Agent</Agent-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 9e5b7bb

Please sign in to comment.