Skip to content

Commit

Permalink
Add java security properties for surefire
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi authored and akurtakov committed Mar 26, 2024
1 parent 243dc1b commit d9bd89b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion eclipse-platform-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
<surefire.platformSystemProperties></surefire.platformSystemProperties>
<!-- properties related to Java modules on Java 9+ -->
<surefire.moduleProperties></surefire.moduleProperties>
<!-- properties related to Java security -->
<surefire.securityProperties></surefire.securityProperties>
<!-- system specific JVM args; if needed provided by system properties to the build command -->
<surefire.systemProperties></surefire.systemProperties>
<java.version>17</java.version>
Expand Down Expand Up @@ -502,7 +504,7 @@
<version>${tycho.version}</version>
<configuration>
<enableAssertions>true</enableAssertions>
<argLine>${surefire.testArgLine} ${surefire.platformSystemProperties} ${surefire.systemProperties} ${surefire.moduleProperties}</argLine>
<argLine>${surefire.testArgLine} ${surefire.platformSystemProperties} ${surefire.systemProperties} ${surefire.moduleProperties} ${surefire.securityProperties}</argLine>
<quiet>true</quiet>
</configuration>
</plugin>
Expand Down Expand Up @@ -1128,6 +1130,15 @@
<surefire.moduleProperties>--add-modules=ALL-SYSTEM</surefire.moduleProperties>
</properties>
</profile>
<profile>
<id>jdk18-or-newer</id>
<activation>
<jdk>[18,)</jdk>
</activation>
<properties>
<surefire.securityProperties>-Djava.security.manager=allow</surefire.securityProperties>
</properties>
</profile>
<profile>
<id>javadoc</id>
<build>
Expand Down

0 comments on commit d9bd89b

Please sign in to comment.