Skip to content

Commit

Permalink
Prepare for release with jar-with-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dsedivec committed Sep 7, 2014
1 parent b32536d commit 4b795d9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,32 @@
<version>0.8.5</version>
</dependency>
</dependencies>

<!-- http://stackoverflow.com/a/574650/2305480 -->
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.codefu.p3widescreen.App</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
3 changes: 1 addition & 2 deletions src/main/java/org/codefu/p3widescreen/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ public static void main(String[] args) {
// Set log level for our whole package.
String packageName = App.class.getPackage().getName();
packageLogger = java.util.logging.Logger.getLogger(packageName);
// TODO: Reduce log level?
packageLogger.setLevel(Level.FINEST);
//packageLogger.setLevel(Level.FINEST);
// Hand it over to Swing.
SwingUtilities.invokeLater(App::createGUI);
}
Expand Down

0 comments on commit 4b795d9

Please sign in to comment.