From 761e693984d58d293518ec3fc25b628835ae2986 Mon Sep 17 00:00:00 2001
From: Andreas Stadelmeier <andi@paulus.haus>
Date: Wed, 15 Mar 2023 18:49:29 +0100
Subject: [PATCH] Set --enable-preview for maven compile and test

---
 pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index 53325758..ed39f4db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,6 +57,16 @@ http://maven.apache.org/maven-v4_0_0.xsd">
 					<compilerArgs>
 						--enable-preview
 					</compilerArgs>
+                    <source>19</source>
+                    <target>19</target>
+                </configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<version>2.22.2</version>
+				<configuration>
+					<argLine>--enable-preview</argLine>
 				</configuration>
 			</plugin>
 			<plugin>