Skip to content

Commit

Permalink
Merge pull request operaton#206 from operaton/build/configure-surefir…
Browse files Browse the repository at this point in the history
…e-forkCount

feat(ci): Improve build performance by configure surefire forkCount (operaton#205)
  • Loading branch information
kthoms authored Nov 15, 2024
2 parents 475df29 + 3ed5020 commit 79c8234
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions engine-plugins/identity-ldap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<properties>
<ldap.server.port>10389</ldap.server.port>
<ldap.server.port.posix>5027</ldap.server.port.posix>
<surefire.forkCount>1</surefire.forkCount>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions engine-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<version.groovy>3.0.9</version.groovy>
<version.apache.httpcore>4.4.5</version.apache.httpcore>
<version.commons-codec>1.15</version.commons-codec>
<surefire.forkCount>1</surefire.forkCount>
</properties>

<dependencyManagement>
Expand Down
3 changes: 0 additions & 3 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,6 @@

<profile>
<id>h2-in-memory</id>
<properties>
<forkCount>0.5C</forkCount>
</properties>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 2 additions & 0 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
<jacoco.argLine/>
<surefire.memArgs>-Xmx1024m -XX:MetaspaceSize=128m</surefire.memArgs>
<surefire.argLine>${jacoco.argLine} ${surefire.memArgs} -Duser.language=en -Duser.region=US -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${project.build.directory}/heap_dump.hprof</surefire.argLine>
<surefire.forkCount>0.5C</surefire.forkCount>

<!-- OSGi bundles properties -->
<operaton.artifact />
Expand Down Expand Up @@ -148,6 +149,7 @@
<myWorkingDir>${project.build.directory}</myWorkingDir>
</systemPropertyVariables>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkCount>${surefire.forkCount}</forkCount>
</configuration>
</plugin>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

<packaging>pom</packaging>

<properties>
<surefire.forkCount>1</surefire.forkCount>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down
2 changes: 2 additions & 0 deletions webapps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<!-- frontend-sources artifact is for internal use only.
Artifact generation is skipped when it comes to maven central deployment -->
<skip-zip-frontend-sources>false</skip-zip-frontend-sources>

<surefire.forkCount>1</surefire.forkCount>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit 79c8234

Please sign in to comment.