Skip to content

Commit 50987de

Browse files
committed
Merge branch 'reinvent25-java25'
# Conflicts: # labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java
2 parents 89ba9b7 + f855159 commit 50987de

File tree

20 files changed

+41
-39
lines changed

20 files changed

+41
-39
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v3
28-
- name: Set up JDK 17
28+
- name: Set up JDK 25
2929
uses: actions/setup-java@v3
3030
with:
3131
distribution: 'corretto'
32-
java-version: 17
32+
java-version: 25
3333
cache: maven
3434
- name: mvn db-setup
3535
run: ./mvnw package -f infrastructure/db-setup/pom.xml
@@ -62,11 +62,11 @@ jobs:
6262
runs-on: ubuntu-latest
6363
steps:
6464
- uses: actions/checkout@v3
65-
- name: Set up JDK 17
65+
- name: Set up JDK 25
6666
uses: actions/setup-java@v3
6767
with:
6868
distribution: 'corretto'
69-
java-version: 17
69+
java-version: 25
7070
cache: maven
7171
- name: mvn initial
7272
run: mvn package
@@ -79,11 +79,11 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v3
82-
- name: Set up JDK 17
82+
- name: Set up JDK 25
8383
uses: actions/setup-java@v3
8484
with:
8585
distribution: 'corretto'
86-
java-version: 17
86+
java-version: 25
8787
cache: maven
8888
- name: mvn build
8989
run: mvn package

labs/unicorn-location-api/UnicornLocationFunction/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<packaging>jar</packaging>
88
<name>API to store unicorn location records</name>
99
<properties>
10-
<maven.compiler.source>17</maven.compiler.source>
11-
<maven.compiler.target>17</maven.compiler.target>
10+
<maven.compiler.source>25</maven.compiler.source>
11+
<maven.compiler.target>25</maven.compiler.target>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1414
</properties>

labs/unicorn-location-api/final/unicorn-location-api-final/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN curl -4 -L https://github.com/graalvm/graalvm-ce-builds/releases/download/jd
1414
RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
1515

1616
# Maven
17-
ENV MVN_VERSION 3.9.6
17+
ENV MVN_VERSION 3.9.11
1818
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
1919
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
2020
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz

labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<packaging>jar</packaging>
88
<name>API to store unicorn location records</name>
99
<properties>
10-
<maven.compiler.source>17</maven.compiler.source>
11-
<maven.compiler.target>17</maven.compiler.target>
10+
<maven.compiler.source>25</maven.compiler.source>
11+
<maven.compiler.target>25</maven.compiler.target>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1414
</properties>

labs/unicorn-location-api/graal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN curl -4 -L https://github.com/graalvm/graalvm-ce-builds/releases/download/jd
1414
RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
1515

1616
# Maven
17-
ENV MVN_VERSION 3.9.9
17+
ENV MVN_VERSION 3.9.11
1818
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
1919
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
2020
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz

labs/unicorn-location-api/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resources:
1616
CodeUri: UnicornLocationFunction
1717
FunctionName: unicorn-location-api-post
1818
Handler: com.unicorn.location.UnicornPostLocationHandler::handleRequest
19-
Runtime: java21
19+
Runtime: java25
2020
Architectures:
2121
- x86_64
2222
MemorySize: 1024

labs/unicorn-stock-broker/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<packaging>jar</packaging>
1313
<name>API to store unicorn transactions</name>
1414
<properties>
15-
<maven.compiler.source>17</maven.compiler.source>
16-
<maven.compiler.target>17</maven.compiler.target>
15+
<maven.compiler.source>25</maven.compiler.source>
16+
<maven.compiler.target>25</maven.compiler.target>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1919
<spring-cloud.version>2025.0.0</spring-cloud.version>

labs/unicorn-stock-broker/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description: >
77
88
Globals:
99
Function:
10-
Runtime: java21
10+
Runtime: java25
1111
Architectures:
1212
- x86_64
1313
MemorySize: 2048

labs/unicorn-store/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [ $app == "spring-graalvm" ]
4040
then
4141
if [[ $build == "--build" ]]
4242
then
43-
./mvnw clean package -f software/alternatives/unicorn-store-basic/pom.xml
43+
./mvnw clean package -f software/alternatives/unicorn-store-spring-graalvm/pom.xml
4444
fi
4545
cd infrastructure/cdk
4646
cdk deploy UnicornStoreSpringGraalVMApp --outputs-file target/output-spring-graalvm.json --require-approval never

labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public static void main(final String[] args) {
5959
new NagPackSuppression.Builder().id("AwsSolutions-APIG3").reason("Workshop API Gateways do not need AWS WAF assigned").build(),
6060
new NagPackSuppression.Builder().id("AwsSolutions-EC23").reason("Not needed").build(),
6161
new NagPackSuppression.Builder().id("AwsSolutions-RDS13").reason("Workshop Database does not need backups").build(),
62-
new NagPackSuppression.Builder().id("CdkNagValidationFailure").reason("Suppress warnings see: https://github.com/cdklabs/cdk-nag/issues/817").build(),
63-
new NagPackSuppression.Builder().id("AwsSolutions-L1").reason("Workshop not upgraded to Java 25 yet").build()
62+
new NagPackSuppression.Builder().id("CdkNagValidationFailure").reason("Suppress warnings see: https://github.com/cdklabs/cdk-nag/issues/817").build()
6463
);
6564

6665
NagSuppressions.addStackSuppressions(infrastructureStack, suppression);

0 commit comments

Comments
 (0)