Skip to content

Commit

Permalink
Merge pull request #109 from guardian/ld/upgrade-to-java-21
Browse files Browse the repository at this point in the history
Ld/upgrade to java 21
  • Loading branch information
lindseydew committed Apr 22, 2024
2 parents 9c31759 + 192846e commit d666691
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 21
distribution: corretto
cache: sbt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-mobile-save-for-later.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: corretto
cache: sbt

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ val commonSettings: immutable.Seq[Def.Setting[_]] = List(
"-deprecation",
"-encoding",
"UTF-8",
"-release:11",
"-release:21",
"-Ypartial-unification",
"-Ywarn-dead-code"
)
Expand Down
8 changes: 4 additions & 4 deletions cdk/lib/__snapshots__/mobile-save-for-later.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ Object {
"Arn",
],
},
"Runtime": "java11",
"Runtime": "java21",
"Tags": Array [
Object {
"Key": "App",
Expand Down Expand Up @@ -993,7 +993,7 @@ Object {
"Arn",
],
},
"Runtime": "java11",
"Runtime": "java21",
"Tags": Array [
Object {
"Key": "App",
Expand Down Expand Up @@ -2029,7 +2029,7 @@ Object {
"Arn",
],
},
"Runtime": "java11",
"Runtime": "java21",
"Tags": Array [
Object {
"Key": "App",
Expand Down Expand Up @@ -2259,7 +2259,7 @@ Object {
"Arn",
],
},
"Runtime": "java11",
"Runtime": "java21",
"Tags": Array [
Object {
"Key": "App",
Expand Down
2 changes: 1 addition & 1 deletion cdk/lib/mobile-save-for-later.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class MobileSaveForLater extends GuStack {
const app = "mobile-save-for-later";

const commonLambdaProps = {
runtime: Runtime.JAVA_11,
runtime: Runtime.JAVA_21,
app,
fileName: `${app}.jar`,
};
Expand Down
3 changes: 2 additions & 1 deletion docs/testing/save-for-later.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ in the oauth flow

### Pre-requisites
1) Mobile credentials from [Janus](https://janus.gutools.co.uk/login)
2) Follow the authentication flow as outlined at the [top](#setting-up-oauth-flow)
2) Make sure you have java 21 installed ([SDK man](https://sdkman.io/) is a good package manager)
3) Follow the authentication flow as outlined at the [top](#setting-up-oauth-flow)

* Go to the drop down menu between the build and play button and select `Edit Configurations`
* Add the following environment variables:
Expand Down
1 change: 1 addition & 0 deletions docs/testing/user-deletion.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

### Pre-requisites
1) Mobile credentials from [Janus](https://janus.gutools.co.uk/login)
2) Make sure you have java 21 installed ([SDK man](https://sdkman.io/) is a good package manager)

* Go to the drop down menu between the build and play button and select `Edit Configurations`
* Make sure `mobile-save-for-later-user-deletion` is selected for the module dropdown
Expand Down
2 changes: 1 addition & 1 deletion mobile-save-for-later-user-deletion/conf/cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Resources:
Handler: com.gu.sfl.userdeletion.UserDeletionLambda::handler
MemorySize: 512
Role: !GetAtt UserDeletionRole.Arn
Runtime: java11
Runtime: java21
Timeout: 300
UserDeletionEventSource:
Type: AWS::Lambda::EventSourceMapping
Expand Down

0 comments on commit d666691

Please sign in to comment.