Moved restrictedAPI to future release

This commit is contained in:
lieght
2025-10-12 20:41:10 +02:00
parent 081fbda7b1
commit 53a72cc340
4 changed files with 23 additions and 19 deletions

11
pom.xml
View File

@@ -131,12 +131,13 @@
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
<arg>
-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
</arg>
<!-- TODO-->
<!-- -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.-->
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
</compilerArgs>