diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1350c86766..ea4ff04170 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,18 @@ Please make sure to read and observe our [Code of Conduct](./CODE_OF_CONDUCT.md) ### Setting up your development environment -You should have JDK 1.8 or later installed in your system. +You should have JDK 17 or later installed in your system. + +### How to run test + +1. add `~/.m2/toolchains.xml`, to define JDK and path. See [toolcahinas-example.xml](./toolchains-example.xml). +2. With JDK 17 as your default JDK, you could specify the JDK version to run test, + +i.e. Run test at JDK 8: + +```bash +mvn test -Dsurefire.jdk-toolchain-version=8 +``` ## Contributing diff --git a/toolchains-example.xml b/toolchains-example.xml new file mode 100644 index 0000000000..0ed5161ac8 --- /dev/null +++ b/toolchains-example.xml @@ -0,0 +1,48 @@ + + + + jdk + + 8 + temurin + temurin_8 + + + /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home + + + + jdk + + 11 + temurin + temurin_11 + + + /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home + + + + jdk + + 17 + temurin + temurin_17 + + + /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home + + + + jdk + + 21 + temurin + temurin_21 + + + /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home + + +