From 79d9c82118e366e596b7b74b2bd763cfbee2e9d1 Mon Sep 17 00:00:00 2001 From: Krzysiek Date: Tue, 11 Jan 2022 16:02:58 +0100 Subject: [PATCH] JAVA-8704: Update README with JDK9+ profiles --- README.md | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 8fb884e3c8..1ae225b1f3 100644 --- a/README.md +++ b/README.md @@ -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 - - - - -