221 lines
9.6 KiB
XML
221 lines
9.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
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>
|
|
|
|
<groupId>wtf.beatrice</groupId>
|
|
<artifactId>autosqueal</artifactId>
|
|
<version>0.0.5-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.release>25</maven.compiler.release>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>2.26.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>2.26.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.kwhat</groupId>
|
|
<artifactId>jnativehook</artifactId>
|
|
<version>2.2.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.formdev</groupId>
|
|
<artifactId>flatlaf</artifactId>
|
|
<version>3.7.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.miglayout</groupId>
|
|
<artifactId>miglayout-swing</artifactId>
|
|
<version>11.4.3</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>6.1.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>nexus-releases</id>
|
|
<name>Nexus Releases Repository</name>
|
|
<url>https://nexus.beatrice.wtf/repository/maven-releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>nexus-snapshots</id>
|
|
<name>Nexus Snapshots Repository</name>
|
|
<url>https://nexus.beatrice.wtf/repository/maven-snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.6.0</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.sonarsource.scanner.maven</groupId>
|
|
<artifactId>sonar-maven-plugin</artifactId>
|
|
<version>5.8.0.7211</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.6.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>make-fat-jar</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- the fat jar replaces the main artifact: jpackage
|
|
and plain `java -jar` both use it. shade merges
|
|
the multi-release and service files correctly,
|
|
which the assembly plugin does not -->
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
<filters>
|
|
<filter>
|
|
<artifact>*:*</artifact>
|
|
<excludes>
|
|
<exclude>META-INF/*.SF</exclude>
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
<exclude>module-info.class</exclude>
|
|
<exclude>META-INF/versions/*/module-info.class</exclude>
|
|
</excludes>
|
|
</filter>
|
|
</filters>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>wtf.beatrice.autosqueal.Main</mainClass>
|
|
<manifestEntries>
|
|
<Multi-Release>true</Multi-Release>
|
|
</manifestEntries>
|
|
</transformer>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>central</id>
|
|
<url>https://repo1.maven.org/maven2/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>sonatype-nexus-releases</id>
|
|
<url>https://oss.sonatype.org/content/repositories/releases</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>sonatype-nexus-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<profiles>
|
|
<!-- builds a native .app bundle. jpackage can only target the os it runs on:
|
|
run this profile on macos with `mvn clean package -Pmac-app` -->
|
|
<profile>
|
|
<id>mac-app</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>stage-jpackage-input</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/jpackage-input</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.build.directory}</directory>
|
|
<includes>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.6.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>jpackage-app-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${java.home}/bin/jpackage</executable>
|
|
<arguments>
|
|
<argument>--type</argument>
|
|
<argument>app-image</argument>
|
|
<argument>--name</argument>
|
|
<argument>${project.artifactId}</argument>
|
|
<argument>--dest</argument>
|
|
<argument>${project.build.directory}/jpackage</argument>
|
|
<argument>--input</argument>
|
|
<argument>${project.build.directory}/jpackage-input</argument>
|
|
<argument>--main-jar</argument>
|
|
<argument>${project.build.finalName}.jar</argument>
|
|
<argument>--main-class</argument>
|
|
<argument>wtf.beatrice.autosqueal.Main</argument>
|
|
<argument>--java-options</argument>
|
|
<argument>--enable-native-access=ALL-UNNAMED</argument>
|
|
<argument>--mac-package-identifier</argument>
|
|
<argument>wtf.beatrice.autosqueal</argument>
|
|
<argument>--mac-package-name</argument>
|
|
<argument>autosqueal</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|