Skip to content

Commit

Permalink
add shade plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
avibn committed Mar 8, 2023
1 parent e73062d commit 0c59887
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

# Maven
log/
target/
target/
dependency-reduced-pom.xml
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,28 @@
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.team44.runwayredeclarationapp.Launcher</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/team44/runwayredeclarationapp/Launcher.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.team44.runwayredeclarationapp;

/**
* Launcher for the shaded jar file
*/
public class Launcher {

/**
* Launch the JavaFX application
*
* @param args command line arguments
*/
public static void main(String[] args) {
App.main(args);
}

}

0 comments on commit 0c59887

Please sign in to comment.