-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APPS-3060] Update JDK version to 21 #258
Changes from all commits
13fb261
61f6e69
e199fb9
3aa6aa2
217abeb
bbeff02
cff337c
89698c6
4e583e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ updates: | |
interval: "daily" | ||
ignore: | ||
- dependency-name: "amazoncorretto" | ||
versions: [">17"] | ||
versions: [">21"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
java-version: '21' | ||
- name: "Clean-up SNAPSHOT artifacts" | ||
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
|
@@ -75,6 +77,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
java-version: '21' | ||
- name: "Build" | ||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} | ||
run: mvn install $MAVEN_CLI_OPTS -DskipTests=true -Dmaven.javadoc.skip=true | ||
|
@@ -96,6 +100,8 @@ jobs: | |
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
java-version: '21' | ||
- name: "Init" | ||
run: bash ./scripts/ci/init.sh | ||
- name: "Release" | ||
|
@@ -122,6 +128,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
java-version: '21' | ||
- name: "Publish artifacts" | ||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} | ||
run: mvn deploy $MAVEN_CLI_OPTS -DskipTests=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM amazoncorretto:17-alpine3.18@sha256:6a3dc573328ced158ae25ffde792accbe8b1ff2e7b505c72d2d5e7b9bfa9ac26 | ||
FROM amazoncorretto:21-alpine3.18@sha256:6a3dc573328ced158ae25ffde792accbe8b1ff2e7b505c72d2d5e7b9bfa9ac26 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please verify the image SHA There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed with devops to use the same SHA image |
||
|
||
ARG JAR_FILE=target/*.jar | ||
COPY ${JAR_FILE} app.jar | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,13 @@ to define a sample [```EventHandler```](../../alfresco-java-event-api/alfresco-j | |
|
||
To properly build and run the project in a local environment it is required to have installed some tools. | ||
|
||
* Java 17: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to update the java version in the other read file as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the java version to 21 in readme file |
||
* Java 21: | ||
```bash | ||
$ java -version | ||
|
||
openjdk version "17.0.4" 2022-07-19 LTS | ||
OpenJDK Runtime Environment (build 17.0.4+8-LTS) | ||
OpenJDK 64-Bit Server VM (build 17.0.4+8-LTS, mixed mode, sharing) | ||
openjdk version "21.0.3" 2024-04-16 LTS | ||
OpenJDK Runtime Environment (build 21.0.3+7-LTS-152) | ||
OpenJDK 64-Bit Server VM (build 21.0.3+7-LTS-152, mixed mode, sharing) | ||
``` | ||
|
||
* [Maven](https://maven.apache.org/install.html) version 3.3 or higher: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check whether we can update java compile time as well to 21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discused confirming the changes with java 21 compile time as well