alist-gui/pom.xml

289 lines
11 KiB
XML
Raw Normal View History

2024-08-28 06:13:39 +08:00
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.octopusyan</groupId>
<artifactId>alist-gui</artifactId>
<version>0.1</version>
2024-08-28 06:13:39 +08:00
<name>alist-gui</name>
<organization>
<name>octopus_yan</name>
<url>octopus_yan@foxmail.com</url>
</organization>
<inceptionYear>2024</inceptionYear>
2024-09-15 04:35:43 +08:00
<description>AList GUI</description>
2024-08-28 06:13:39 +08:00
<properties>
2024-09-08 02:03:01 +08:00
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<java.version>21</java.version>
2024-08-28 06:13:39 +08:00
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2024-09-08 16:11:51 +08:00
<exec.mainClass>cn.octopusyan.alistgui.AppLauncher</exec.mainClass>
2024-09-08 21:49:10 +08:00
<cssSrcPath>${project.basedir}/src/main/resources/css</cssSrcPath>
<cssTargetPath>${project.basedir}/target/classes/css</cssTargetPath>
2024-09-08 16:11:51 +08:00
2024-08-28 06:13:39 +08:00
<junit.version>5.10.0</junit.version>
2024-09-08 02:03:01 +08:00
<javafx.version>21.0.4</javafx.version>
2024-08-28 06:13:39 +08:00
<slf4j.version>2.0.16</slf4j.version>
<logback.version>1.4.14</logback.version>
<hutool.version>5.8.32</hutool.version>
2024-08-28 06:13:39 +08:00
<common-lang3.version>3.16.0</common-lang3.version>
<common-exec.version>1.4.0</common-exec.version>
2024-09-15 04:35:43 +08:00
<jna.version>5.14.0</jna.version>
<lombok.version>1.18.32</lombok.version>
2024-09-08 02:03:01 +08:00
<jackson.version>2.15.4</jackson.version>
<ikonli.version>12.3.1</ikonli.version>
<gluonhq-emoji.version>1.0.1</gluonhq-emoji.version>
2024-08-28 06:13:39 +08:00
</properties>
<dependencies>
<!-- javafx -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
2024-09-08 02:03:01 +08:00
<!-- https://mkpaz.github.io/atlantafx/ -->
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-base</artifactId>
<version>2.0.1</version>
</dependency>
2024-08-28 06:13:39 +08:00
<!-- slf4j -->
<!-- https://slf4j.org/manual.html -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<!-- common -->
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${common-lang3.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-exec -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>${common-exec.version}</version>
</dependency>
2024-09-15 04:35:43 +08:00
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>${jna.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>${jna.version}</version>
</dependency>
<!-- hutool -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
<version>${hutool.version}</version>
</dependency>
2024-08-28 06:13:39 +08:00
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
2024-09-08 02:03:01 +08:00
<version>${jackson.version}</version>
2024-08-28 06:13:39 +08:00
</dependency>
2024-09-08 12:10:12 +08:00
<!-- https://kordamp.org/ikonli/ -->
2024-08-28 06:13:39 +08:00
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-javafx</artifactId>
<version>${ikonli.version}</version>
</dependency>
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-fontawesome-pack</artifactId>
<version>${ikonli.version}</version>
2024-08-28 06:13:39 +08:00
</dependency>
<dependency>
<groupId>com.gluonhq</groupId>
<artifactId>emoji</artifactId>
<version>${gluonhq-emoji.version}</version>
2024-08-28 06:13:39 +08:00
</dependency>
</dependencies>
2024-08-28 06:24:41 +08:00
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>nexus-snapshot-repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
2024-08-28 06:13:39 +08:00
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
2024-09-08 07:40:27 +08:00
<excludes>
<exclude>css/*.scss</exclude>
</excludes>
2024-08-28 06:13:39 +08:00
</resource>
</resources>
<plugins>
2024-09-08 12:10:12 +08:00
2024-08-28 06:13:39 +08:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
2024-08-28 06:24:41 +08:00
<version>3.13.0</version>
2024-08-28 06:13:39 +08:00
<configuration>
2024-09-08 02:03:01 +08:00
<source>21</source>
<target>21</target>
<compilerArgs>--enable-preview</compilerArgs>
2024-09-08 07:40:27 +08:00
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
2024-08-28 06:13:39 +08:00
</configuration>
</plugin>
2024-09-08 02:03:01 +08:00
<!-- https://github.com/HebiRobotics/sass-cli-maven-plugin -->
<plugin>
<groupId>us.hebi.sass</groupId>
<artifactId>sass-cli-maven-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<sassVersion>1.78.0</sassVersion>
<args> <!-- Any argument that should be forwarded to the sass cli -->
2024-09-08 21:49:10 +08:00
<arg>${cssSrcPath}/root.scss:${cssTargetPath}/root.css</arg>
<arg>${cssSrcPath}/root-view.scss:${cssTargetPath}/root-view.css</arg>
<arg>${cssSrcPath}/main-view.scss:${cssTargetPath}/main-view.css</arg>
<arg>${cssSrcPath}/setup-view.scss:${cssTargetPath}/setup-view.css</arg>
<arg>${cssSrcPath}/about-view.scss:${cssTargetPath}/about-view.css</arg>
<arg>${cssSrcPath}/admin-panel.scss:${cssTargetPath}/admin-panel.css</arg>
2024-09-08 02:03:01 +08:00
<arg>--no-source-map</arg>
</args>
</configuration>
<executions>
<execution>
<id>sass-exec</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
2024-08-28 06:13:39 +08:00
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
2024-09-08 16:11:51 +08:00
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>alistgui</launcher>
<jlinkImageName>app</jlinkImageName>
<jlinkZipName>app</jlinkZipName>
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
</configuration>
2024-08-28 06:13:39 +08:00
<executions>
<execution>
<!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id>
<configuration>
2024-09-08 16:11:51 +08:00
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>alist-gui</launcher>
<jlinkImageName>app</jlinkImageName>
<jlinkZipName>app</jlinkZipName>
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
2024-09-08 12:10:12 +08:00
<options>
<option>--enable-preview</option>
</options>
2024-08-28 06:13:39 +08:00
</configuration>
</execution>
</executions>
</plugin>
2024-09-08 02:03:01 +08:00
<!-- https://github.com/fvarrui/JavaPackager -->
2024-08-28 06:13:39 +08:00
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
2024-08-28 06:24:41 +08:00
<version>1.7.7-SNAPSHOT</version>
2024-08-28 06:13:39 +08:00
<configuration>
2024-09-08 16:11:51 +08:00
<mainClass>${exec.mainClass}</mainClass>
2024-08-28 06:13:39 +08:00
<bundleJre>true</bundleJre>
<generateInstaller>false</generateInstaller>
2024-09-08 16:11:51 +08:00
<copyDependencies>true</copyDependencies>
<assetsDir>${project.basedir}/src/main/resources/assets</assetsDir>
<vmArgs>--enable-preview</vmArgs>
2024-08-28 06:13:39 +08:00
</configuration>
<executions>
<execution>
<id>bundling-for-windows</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<platform>windows</platform>
<createZipball>true</createZipball>
2024-09-08 16:11:51 +08:00
<winConfig>
<headerType>gui</headerType>
<generateMsi>false</generateMsi>
</winConfig>
2024-08-28 06:13:39 +08:00
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>