Skip to content

Commit

Permalink
Require Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
lwitkowski committed Jan 26, 2024
1 parent 4fd5063 commit 2df346f
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/latest-stable-compatibility-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-mode-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quickstart-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ so-called "HTTP APIs" are usually not.

## Usage
### Quarkus 3.X / Java 11+
Make sure JDK 11 is in your PATH, then run:
Make sure JDK 17 is in your PATH, then run:
```shell
mvn io.quarkus:quarkus-maven-plugin:3.6.3:create \
-DprojectGroupId=problem \
Expand Down
8 changes: 4 additions & 4 deletions run-jvm-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

java_ver=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1)

if [[ "$java_ver" != "11" ]]; then
read -p "Expected Java version is 11, while $java_ver was found. Switch to java 11 (y/n)? " choice
if [[ "$java_ver" != "17" ]]; then
read -p "Expected Java version is 17, while $java_ver was found. Switch to java 17 (y/n)? " choice
if [[ "$choice" != "y" ]]; then
exit;
fi

echo "Switching java version to 11"
export JAVA_HOME=$(/usr/libexec/java_home -v 11);
echo "Switching java version to 17"
export JAVA_HOME=$(/usr/libexec/java_home -v 17);
fi

set -x
Expand Down
8 changes: 4 additions & 4 deletions run-native-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

java_ver=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1)

if [[ "$java_ver" != "11" ]]; then
read -p "Expected Java version is 11, while $java_ver was found. Switch to java 11 (y/n)? " choice
if [[ "$java_ver" != "17" ]]; then
read -p "Expected Java version is 17, while $java_ver was found. Switch to java 17 (y/n)? " choice
if [[ "$choice" != "y" ]]; then
exit;
fi

echo "Switching java version to 11"
export JAVA_HOME=$(/usr/libexec/java_home -v 11);
echo "Switching java version to 17"
export JAVA_HOME=$(/usr/libexec/java_home -v 17);
fi

set -e
Expand Down

0 comments on commit 2df346f

Please sign in to comment.