Skip to content

Commit

Permalink
Build, test and ship with JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Mar 20, 2024
1 parent 739ec5e commit 1efb96c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up JDK 17
- name: Install required Java distribution
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: $MAVEN clean verify
Expand Down
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.0.9
21.0
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
## Build requirements

* Mac OS X or Linux
* Java 17+, 64-bit
* Java 21+, 64-bit
* Docker

#### Running Trino Gateway in your IDE
Expand All @@ -54,7 +54,7 @@ or execute the following command:

#### Locally

This project requires Java 17. Note that higher version of Java have not been
This project requires Java 21. Note that higher version of Java have not been
verified and may run into unexpected issues.

Run `./mvnw clean install` to build `trino-gateway`. VM options required for
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Consider the following requirements for your Trino Gateway installation.

### Java

Trino Gateway requires a Java 17 runtime. Older versions of Java can not be
Trino Gateway requires a Java 21 runtime. Older versions of Java can not be
used. Newer versions might work but are not tested.

Verify the Java version on your system with `java -version`.
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.targetJdk>17</project.build.targetJdk>

<air.java.version>17</air.java.version>
<project.build.targetJdk>21</project.build.targetJdk>
<air.java.version>21</air.java.version>
<air.check.skip-spotbugs>true</air.check.skip-spotbugs>
<air.check.skip-pmd>true</air.check.skip-pmd>
<air.release.preparation-goals>clean verify -DskipTests</air.release.preparation-goals>
Expand Down

0 comments on commit 1efb96c

Please sign in to comment.