Skip to content

Commit

Permalink
4715 upgrade to java 21 fix breaking changes (#4802)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgauldie authored Sep 16, 2024
1 parent 1123ff6 commit 556ef4a
Show file tree
Hide file tree
Showing 40 changed files with 217 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 360
permissions:
actions: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 360
permissions:
actions: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 360
permissions:
actions: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
image-tag:
name: Define image tag
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
name: ${{ steps.define.outputs.name }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
label_issues:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
issues: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
lintClient:
name: Lint & Format Client
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
lintTypes:
name: Lint Generated Types
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
Expand All @@ -28,11 +28,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Check Generated Types
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
merge-images:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Login to registry
uses: docker/login-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
image-name: ghcr.io/darpa-askem/hmi-client

amd64:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
tags: ${{ needs.image-tag.outputs.tagged-image-name }}--amd64

arm64-emulation:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-funman-taskrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
image-name: ghcr.io/darpa-askem/funman-taskrunner

amd64:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -42,11 +42,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand All @@ -59,7 +59,7 @@ jobs:
tags: ${{ needs.image-tag.outputs.tagged-image-name }}--amd64

arm64-emulation:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -81,11 +81,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-gollm-taskrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
image-name: ghcr.io/darpa-askem/gollm-taskrunner

amd64:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -42,11 +42,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand All @@ -59,7 +59,7 @@ jobs:
tags: ${{ needs.image-tag.outputs.tagged-image-name }}--amd64

arm64-emulation:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -81,11 +81,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-mira-taskrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
image-name: ghcr.io/darpa-askem/mira-taskrunner

amd64:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -42,11 +42,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand All @@ -59,7 +59,7 @@ jobs:
tags: ${{ needs.image-tag.outputs.tagged-image-name }}--amd64

arm64-emulation:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -81,11 +81,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Create image and push
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
image-name: ghcr.io/darpa-askem/hmi-server

amd64:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -45,11 +45,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Build hmi-server using Makefile
Expand All @@ -65,7 +65,7 @@ jobs:
tags: ${{ needs.image-tag.outputs.tagged-image-name }}--amd64

arm64-emulation:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: image-tag
permissions:
contents: read
Expand All @@ -87,11 +87,11 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java v17
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: gradle

- name: Build hmi-server using Makefile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-client-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
e2e-tests:
name: Playwright E2E Tests
timeout-minutes: 30
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
# Shard the tests across multiple machines to improve performance
# Can be increased as needed starting with a small pool
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-client-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
unit-tests:
name: Vitest Unit Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
server-tests:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -40,12 +40,12 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

# Setup Java 17
- name: Setup Java v17
# Setup Java 21
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
java-version: 21
cache: gradle

# Start containers
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-taskrunner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:
taskrunner-tests:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on:

permissions:
contents: read
Expand All @@ -39,12 +39,12 @@ jobs:
- name: Validate GradleW JAR
uses: gradle/actions/wrapper-validation@v3

# Setup Java 17
- name: Setup Java v17
# Setup Java 21
- name: Setup Java v21
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
java-version: 21
cache: gradle

# Start containers
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ develop Terarium, you will need these as a prerequisite:

- [Yarn 4](https://yarnpkg.com/getting-started/install)
- [NodeJS 20](https://nodejs.org/en/download/current/)
- [JDK 17](https://adoptium.net/temurin)
- [JDK 21](https://adoptium.net/temurin)
- [Gradle 7](https://gradle.org/install/)
- [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)

There are many ways/package managers to install these dependencies. We recommend using [Homebrew](https://brew.sh/) on MacOS.

```bash
brew tap homebrew/cask-versions
brew install openjdk@17
brew install openjdk@21
brew install gradle
brew install node
brew install yarnb
Expand All @@ -72,7 +72,7 @@ In the WSL Terminal input these commands to install the dependencies (Ubuntu ins
```shell
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt install openjdk-17-jre-headless
sudo apt install openjdk-21-jre-headless
sudo apt install gradle
sudo apt install python3-pip
python3 -m pip install --user ansible
Expand Down
2 changes: 1 addition & 1 deletion lombok.config
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ lombok.anyconstructor.addconstructorproperties = true
## Examples:
#
# clear lombok.equalsAndHashCode.callSuper
# lombok.equalsAndHashCode.callSuper = [CALL | SKIP | WARN]
lombok.equalsAndHashCode.callSuper = CALL
#

##
Expand Down
2 changes: 1 addition & 1 deletion packages/funman/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the Spring Boot application
FROM eclipse-temurin:17.0.12_7-jdk-focal AS funman_taskrunner_builder
FROM eclipse-temurin:21-jdk-noble AS funman_taskrunner_builder

###### DEV ONLY ######
#VVVVVVVVVVVVVVVVVVVVV
Expand Down
Loading

0 comments on commit 556ef4a

Please sign in to comment.