JAVA-8704: Update README with JDK9+ profiles

This commit is contained in:
Krzysiek 2022-01-11 16:02:58 +01:00
parent 1a5ec90385
commit 79d9c82118
1 changed files with 25 additions and 15 deletions

View File

@ -25,20 +25,26 @@ Profile based segregation
We are using maven build profiles to segregate the huge list of individual projects we have in our repository.
As for now, vast majority of the modules require JDK8 to build and run correctly.
The projects are broadly divided into 3 lists: first, second and heavy.
Next, they are segregated further on the basis of the tests that we want to execute.
Therefore, we have a total of 6 profiles:
Additionally, there are 2 profiles dedicated for JDK9 and above builds.
| Profile | Includes | Type of test enabled |
| ----------------------- | --------------------------- | -------------------- |
| default-first | First set of projects | *UnitTest |
| integration-lite-first | First set of projects | *IntegrationTest |
| default-second | Second set of projects | *UnitTest |
| integration-lite-second | Second set of projects | *IntegrationTest |
| default-heavy | Heavy/long running projects | *UnitTest |
| integration-heavy | Heavy/long running projects | *IntegrationTest |
Therefore, we have a total of 8 profiles:
| Profile | Includes | Type of test enabled |
| -------------------------- | --------------------------- | -------------------- |
| default-first | First set of projects | *UnitTest |
| integration-lite-first | First set of projects | *IntegrationTest |
| default-second | Second set of projects | *UnitTest |
| integration-lite-second | Second set of projects | *IntegrationTest |
| default-heavy | Heavy/long running projects | *UnitTest |
| integration-heavy | Heavy/long running projects | *IntegrationTest |
| default-jdk9-and-above | JDK9 and above projects | *UnitTest |
| integration-jdk9-and-above | JDK9 and above projects | *IntegrationTest |
Building the project
====================
@ -53,6 +59,13 @@ or if we want to build the entire repository with Integration Tests enabled, we
`mvn clean install -Pintegration-lite-first,integration-lite-second,integration-heavy`
Analogously, for the JDK9 and above projects the commands are:
`mvn clean install -Pdefault-jdk9-and-above`
and
`mvn clean install -Pintegration-jdk9-and-above`
Building a single module
====================
@ -81,11 +94,8 @@ To run the integration tests, use the command:
`mvn clean install -Pintegration-lite-second` or
`mvn clean install -Pintegration-heavy`
`mvn clean install -Pintegration-heavy` or
`mvn clean install -Pintegration-jdk9-and-above`
depending on the list where our module exists