Skip to content

Commit 252906f

Browse files
feat: Upgraded SpringBoot Version (#39)
* Upgraded SpringBoot Version * Update pom.xml * Update ClientHttpResponse.java * Update maven-merge-build.yml with v4 versoiin of upload artifacts * Update maven-merge-build.yml with v4 versoiin of upload artifacts * upgraded java version * updated java version * Update maven-merge-build.yml * Update publish-central.yml
1 parent 3b63926 commit 252906f

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/maven-merge-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up JDK 11 for x64
2121
uses: actions/setup-java@v3
2222
with:
23-
java-version: '11'
23+
java-version: '17'
2424
distribution: 'adopt'
2525
architecture: x64
2626
cache: maven
@@ -56,7 +56,7 @@ jobs:
5656
fi
5757
5858
- name: Upload JaCoCo coverage report
59-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v4
6060
with:
6161
name: jacoco-report
6262
path: target/site/jacoco/

.github/workflows/maven-pr-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up JDK 11 for x64
2121
uses: actions/setup-java@v3
2222
with:
23-
java-version: '11'
23+
java-version: '17'
2424
distribution: 'adopt'
2525
architecture: x64
2626
cache: maven
@@ -31,7 +31,7 @@ jobs:
3131
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
3232
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
3333
- name: Upload JaCoCo coverage report
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: jacoco-report
3737
path: target/site/jacoco/

.github/workflows/publish-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

15-
- name: Set up JDK 11
15+
- name: Set up JDK 17
1616
uses: actions/setup-java@v2
1717
with:
18-
java-version: 11
18+
java-version: 17
1919
distribution: 'adopt'
2020

2121
- name: Build with Maven
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Apache Maven Central
2525
uses: actions/setup-java@v2
2626
with: # running setup-java again overwrites the settings.xml
27-
java-version: 11
27+
java-version: 17
2828
distribution: 'adopt'
2929
server-id: ossrh
3030
server-username: OSSRH_USERNAME

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
<parent>
1616
<groupId>org.springframework.boot</groupId>
1717
<artifactId>spring-boot-starter-parent</artifactId>
18-
<version>2.7.12</version>
18+
<version>3.1.11</version>
1919
<relativePath /> <!-- lookup parent from repository -->
2020
</parent>
2121

2222
<properties>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2424
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
25-
<maven.compiler.source>11</maven.compiler.source>
26-
<maven.compiler.target>11</maven.compiler.target>
25+
<maven.compiler.source>17</maven.compiler.source>
26+
<maven.compiler.target>17</maven.compiler.target>
2727

2828
<junit.version>5.7.2</junit.version>
2929
<jacoco.enabled>true</jacoco.enabled>

src/main/java/com/intuit/springwebclient/entity/ClientHttpResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import lombok.Builder;
44
import lombok.Getter;
5-
import org.springframework.http.HttpStatus;
5+
import org.springframework.http.HttpStatusCode;
66

77
@Getter
88
@Builder
99
public final class ClientHttpResponse<T>{
1010

1111
private final T response;
1212
private final String error;
13-
private final HttpStatus status;
13+
private final HttpStatusCode status;
1414
private final boolean isSuccess2xx;
1515

1616
}

0 commit comments

Comments
 (0)