Skip to content

Commit

Permalink
Use Java 21 instead of Java 17
Browse files Browse the repository at this point in the history
Java 21 is the latest LTS
Java is used internally so we can upgrade without external impact. it
will allow easier maintenance and more power.

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Nov 24, 2023
1 parent 7d4ece4 commit 23244d3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

# Install dependencies
- run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-pre-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: 🔧 Install dependencies
run: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: 🛰️ Setup Pages
uses: actions/configure-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

# Install dependencies
- run: yarn install --immutable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: 🔧 Install dependencies
run: yarn
Expand Down
5 changes: 2 additions & 3 deletions packages/camel-catalog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<version.camel-k-crds>2.1.0</version.camel-k-crds>
<version.camel-kamelets>4.2.0</version.camel-kamelets>
<version.jackson>2.16.0</version.jackson>
<version.java>17</version.java>
<version.java>21</version.java>
<version.junit>5.10.1</version.junit>
<version.kubernetes-model>6.9.2</version.kubernetes-model>
<version.maven-antrun-plugin>3.1.0</version.maven-antrun-plugin>
Expand Down Expand Up @@ -142,8 +142,7 @@
<version>${version.maven-compiler-plugin}</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<source>${version.java}</source>
<target>${version.java}</target>
<release>${version.java}</release>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 23244d3

Please sign in to comment.