From 53a72cc34094720b1d1f213b315d32a72764e26a Mon Sep 17 00:00:00 2001
From: lieght <49651652+BAFGdeJong@users.noreply.github.com>
Date: Sun, 12 Oct 2025 20:41:10 +0200
Subject: [PATCH] Moved restrictedAPI to future release
---
app/pom.xml | 9 +++++----
framework/pom.xml | 11 ++++++-----
game/pom.xml | 11 ++++++-----
pom.xml | 11 ++++++-----
4 files changed, 23 insertions(+), 19 deletions(-)
diff --git a/app/pom.xml b/app/pom.xml
index 189ade6..2bed1ea 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -149,11 +149,12 @@
-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
-Xplugin:ErrorProne \
- -Xep:RestrictedApi:ERROR \
- -XepOpt:RestrictedApi:annotation=org.toop.framework.annotations.TestsOnly \
- -XepOpt:RestrictedApi:allowlistRegex=(?s).*/src/test/java/.*|.*test\.java \
- -XepOpt:RestrictedApi:message=This API is marked @TestsOnly and shouldn't be normally used.
+
+
+
+
+
-XDcompilePolicy=simple
--should-stop=ifError=FLOW
diff --git a/framework/pom.xml b/framework/pom.xml
index b0e037c..5c1988d 100644
--- a/framework/pom.xml
+++ b/framework/pom.xml
@@ -161,12 +161,13 @@
-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
- -Xplugin:ErrorProne \
- -Xep:RestrictedApi:ERROR \
- -XepOpt:RestrictedApi:annotation=org.toop.framework.annotations.TestsOnly \
- -XepOpt:RestrictedApi:allowlistRegex=(?s).*/src/test/java/.*|.*test\.java \
- -XepOpt:RestrictedApi:message=This API is marked @TestsOnly and shouldn't be normally used.
+ -Xplugin:ErrorProne
+
+
+
+
+
-XDcompilePolicy=simple
--should-stop=ifError=FLOW
diff --git a/game/pom.xml b/game/pom.xml
index efd9aaf..28a59b7 100644
--- a/game/pom.xml
+++ b/game/pom.xml
@@ -123,12 +123,13 @@
-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
- -Xplugin:ErrorProne \
- -Xep:RestrictedApi:ERROR \
- -XepOpt:RestrictedApi:annotation=org.toop.framework.annotations.TestsOnly \
- -XepOpt:RestrictedApi:allowlistRegex=(?s).*/src/test/java/.*|.*test\.java \
- -XepOpt:RestrictedApi:message=This API is marked @TestsOnly and shouldn't be normally used.
+ -Xplugin:ErrorProne
+
+
+
+
+
-XDcompilePolicy=simple
--should-stop=ifError=FLOW
diff --git a/pom.xml b/pom.xml
index 8742145..ecc0238 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,12 +131,13 @@
-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
- -Xplugin:ErrorProne \
- -Xep:RestrictedApi:ERROR \
- -XepOpt:RestrictedApi:annotation=org.toop.framework.annotations.TestsOnly \
- -XepOpt:RestrictedApi:allowlistRegex=(?s).*/src/test/java/.*|.*test\.java \
- -XepOpt:RestrictedApi:message=This API is marked @TestsOnly and shouldn't be normally used.
+ -Xplugin:ErrorProne
+
+
+
+
+
-XDcompilePolicy=simple
--should-stop=ifError=FLOW