160 lines
5.3 KiB
XML
160 lines
5.3 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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>ru.darktale</groupId>
|
|
<artifactId>calc</artifactId>
|
|
<name>calc</name>
|
|
<version>1.0</version>
|
|
<build>
|
|
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
|
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<source>21</source>
|
|
<target>21</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-maven-plugin</artifactId>
|
|
<version>0.0.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-cli</id>
|
|
<configuration>
|
|
<mainClass>ru.darktale.calc.CalcApplication</mainClass>
|
|
<launcher>app</launcher>
|
|
<jlinkZipName>app</jlinkZipName>
|
|
<jlinkImageName>app</jlinkImageName>
|
|
<noManPages>true</noManPages>
|
|
<stripDebug>true</stripDebug>
|
|
<noHeaderFiles>true</noHeaderFiles>
|
|
<jvmArgs>--add-modules=javafx.controls,javafx.fxml
|
|
--module-path "C:\Users\mi\.m2\repository\org\openjfx\javafx-fxml\21-ea+24";"C:\Users\mi\.m2\repository\org\openjfx\javafx-controls\21-ea+24";"C:\Users\mi\.m2\repository\org\openjfx\javafx-graphics\21-ea+24";"C:\Users\mi\.m2\repository\org\openjfx\javafx-base\21-ea+24"</jvmArgs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<phase>process-sources</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<jvmTarget>21</jvmTarget>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>native</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.graalvm.nativeimage</groupId>
|
|
<artifactId>native-image-maven-plugin</artifactId>
|
|
<version>19.3.6</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>native-image</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<imageName>calc-1.0</imageName>
|
|
<buildArgs>--no-fallback</buildArgs>
|
|
<mainClass>ru.darktale.calc.CalcApplicationKt</mainClass>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<version>5.9.2</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>opentest4j</artifactId>
|
|
<groupId>org.opentest4j</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>junit-platform-commons</artifactId>
|
|
<groupId>org.junit.platform</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>apiguardian-api</artifactId>
|
|
<groupId>org.apiguardian</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<version>5.9.2</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>junit-platform-engine</artifactId>
|
|
<groupId>org.junit.platform</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>apiguardian-api</artifactId>
|
|
<groupId>org.apiguardian</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>33.0.0-jre</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
<properties>
|
|
<kotlin.version>1.9.20</kotlin.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<spring.boot.version>3.2.2</spring.boot.version>
|
|
<junit.version>5.9.2</junit.version>
|
|
<java.fx.version>21-ea+24</java.fx.version>
|
|
</properties>
|
|
</project>
|