Skip to content

Commit

Permalink
Upgrade to Java 17 (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-elimu authored Aug 2, 2024
2 parents 3fc4ddd + b019a72 commit fcd221d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [11, 17, 21]
java: [17, 21]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/maven-regression-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ on:
branches: [ "main" ]

jobs:
regression_test_hindi:
regression_test_HIN:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
java-version: 17
cache: maven
- run: mvn clean
- run: mvn verify -P regression-testing-rest -D base.url=http://hin.elimu.ai

regression_test_tagalog:
needs: regression_test_hindi
regression_test_TGL:
needs: regression_test_HIN
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
java-version: 17
cache: maven
- run: mvn clean
- run: mvn verify -P regression-testing-rest -D base.url=http://tgl.elimu.ai
2 changes: 1 addition & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
java-version: 17
cache: maven
- run: git config user.name 'Nya Ξlimu'
- run: git config user.email '[email protected]'
Expand Down
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<version>2.4.25-SNAPSHOT</version>

<properties>
<java.version>11</java.version>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<model.version>2.0.73</model.version> <!-- https://jitpack.io/#elimu-ai/model -->
<hibernate.version>5.6.15.Final</hibernate.version> <!-- https://repo.maven.apache.org/maven2/org/hibernate/ -->
Expand All @@ -34,6 +34,11 @@
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/config/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Version: `CentOS 9 Stream`
## Java Virtual Machine (JVM) ☕

Install Java 11 or newer. We will be using [OpenJDK](https://openjdk.org/), but you can also use the JDK from [Oracle](https://www.oracle.com/java/).
Install Java 17 or newer. We will be using [OpenJDK](https://openjdk.org/), but you can also use the JDK from [Oracle](https://www.oracle.com/java/).

Version: `17`

Expand Down

0 comments on commit fcd221d

Please sign in to comment.