Skip to content
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

Update to use Spring Boot 3.1.3 and springBoot-3.0 feature #135

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 8
java-version: 17
- run: unset _JAVA_OPTIONS
- name: Run tests
run: sudo ../scripts/testApp.sh
Expand Down
2 changes: 1 addition & 1 deletion finish/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ LABEL \
description="This image contains the hello application running with the Open Liberty runtime."

# tag::serverXml[]
RUN cp /opt/ol/wlp/templates/servers/springBoot2/server.xml /config/server.xml
RUN cp /opt/ol/wlp/templates/servers/springBoot3/server.xml /config/server.xml
# end::serverXml[]

RUN features.sh
Expand Down
4 changes: 2 additions & 2 deletions finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.6</version>
<version>3.1.3</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -44,7 +44,7 @@
</dependencies>

<properties>
<java.version>1.8</java.version>
<java.version>17</java.version>
</properties>

<build>
Expand Down
4 changes: 2 additions & 2 deletions finish/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

<featureManager>
<!-- tag::servlet[] -->
<feature>servlet-4.0</feature>
<feature>servlet-6.0</feature>
<!-- end::servlet[] -->
<!-- tag::springboot[] -->
<feature>springBoot-2.0</feature>
<feature>springBoot-3.0</feature>
<!-- end::springboot[] -->
</featureManager>

Expand Down
2 changes: 1 addition & 1 deletion finish/src/test/java/hello/HelloControllerIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.junit4.SpringRunner;

Expand Down
7 changes: 3 additions & 4 deletions start/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.springframework</groupId>
Expand All @@ -10,7 +9,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.6</version>
<version>3.1.3</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -45,7 +44,7 @@
</dependencies>

<properties>
<java.version>1.8</java.version>
<java.version>17</java.version>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion start/src/test/java/hello/HelloControllerIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.junit4.SpringRunner;

Expand Down
Loading