Skip to content

Commit

Permalink
feat: Upgrade to Java 17 (#244)
Browse files Browse the repository at this point in the history
* Update to Java 17

* Update build matrix

* Fix CodeQL

* Remove rewrite plugin

* Update readme

* Style improvements
  • Loading branch information
MatKuhr authored Oct 4, 2024
1 parent 14da944 commit 4e4234f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17 ]
java-version: [ 17, 21 ]
name: Build with Java ${{ matrix.java-version }}

steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: Setup JDK
with:
distribution: 'adopt'
java-version: 8
java-version: 17

- name: Restore CVE Database
uses: actions/cache/restore@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

**/.venv/**
**/__pycache__/**
.java-version
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Foundry and Kubernetes (K8S) environment.

## Requirements

- Java `≥ 8`
- Java `≥ 17`
- Java `≥ 8` may be used until version `0.10.5`, version `0.20.0` and onwards require Java `≥ 17`
- Maven `≥ 3.8.1`

### Building the Project
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</distributionManagement>

<properties>
<java.version>1.8</java.version>
<java.version>17</java.version>
<maven.version>3.8</maven.version>
<java.failOnWarning>true</java.failOnWarning>
<skipCveCheck>false</skipCveCheck>
Expand All @@ -63,8 +63,8 @@

<cloud-environment.version>0.10.5</cloud-environment.version>

<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<jsr305.version>3.0.2</jsr305.version>
<slf4j-simple.version>2.0.16</slf4j-simple.version>
Expand Down

0 comments on commit 4e4234f

Please sign in to comment.