shade dependencies and move package

This commit is contained in:
Ninjdai 2024-11-20 18:12:24 +01:00
parent d7c7b577ee
commit 55a3db11a6
2 changed files with 40 additions and 5 deletions

41
pom.xml
View File

@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>dev.ninjdai</groupId> <groupId>dev.ninjdai.prosopagtk</groupId>
<artifactId>prosopagtk</artifactId> <artifactId>prosopagtk</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
@ -26,5 +26,40 @@
<version>v0.5.0</version> <version>v0.5.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
</project> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>dev.ninjdai.prosopagtk.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>dev.ninjdai.prosopagtk.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,4 +1,4 @@
package dev.ninjdai; package dev.ninjdai.prosopagtk;
import ch.bailu.gtk.gtk.Application; import ch.bailu.gtk.gtk.Application;
import ch.bailu.gtk.gtk.ApplicationWindow; import ch.bailu.gtk.gtk.ApplicationWindow;
@ -34,4 +34,4 @@ public class Main {
// Terminate with exit code // Terminate with exit code
System.exit(result); System.exit(result);
} }
} }