quarkus-desktop-swt
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.quarkiverse.desktop</groupId>
<artifactId>quarkus-desktop-swt</artifactId>
<version>0.2.1</version>
</dependency><?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>
<parent>
<groupId>io.quarkiverse.desktop</groupId>
<artifactId>quarkus-desktop-swt-parent</artifactId>
<version>0.2.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>quarkus-desktop-swt</artifactId>
<name>Quarkus Desktop - SWT - Runtime</name>
<description>Build SWT desktop (GUI) applications with Quarkus, in JVM mode and as GraalVM native executables</description>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<!-- SWT : the host bundle, whose pom adds the SWT jar of the operating system and architecture of the build -->
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.swt</artifactId>
</dependency>
<!-- GraalVM Features and substitutions (native executables only) -->
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>nativeimage</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>extension-descriptor</goal>
</goals>
<configuration>
<deployment>${project.groupId}:${project.artifactId}-deployment:${project.version}</deployment>
<capabilities>
<provides>io.quarkiverse.desktop.swt</provides>
</capabilities>
<!-- The JVM of dev mode starts before any build step runs, with the JVM options of the
descriptors of the extensions (dev-mode.jvm-option.std.enable-native-access) : SWT loads
its native libraries, the JDK (24 and later) warns without the native access. Java 17
and later accept the option, and the dev mode launcher passes it to any version. -->
<devMode>
<jvmOptions>
<enable-native-access>ALL-UNNAMED</enable-native-access>
</jvmOptions>
</devMode>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-processor</artifactId>
</path>
</annotationProcessorPaths>
<annotationProcessorPathsUseDepMgmt>true</annotationProcessorPathsUseDepMgmt>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>