Skip to content

Commit

Permalink
Merge pull request #6 from CherryPill/A-a-c_#2
Browse files Browse the repository at this point in the history
Modify main pom to create uber jar alongside the regular no-dep jar
  • Loading branch information
CherryPill authored Feb 2, 2020
2 parents 56201e5 + 43e98da commit 3b4f88d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@
<mainClass>application.Main</mainClass>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>application.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>
<dependencies>
Expand All @@ -39,21 +61,17 @@
<artifactId>log4j-core</artifactId>
<version>2.13.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.2.4</version>
<scope>test</scope>
</dependency>


</dependencies>
</project>

0 comments on commit 3b4f88d

Please sign in to comment.