Skip to content

Commit

Permalink
update to java 21 & spring boot 3.2.1 && spring-cloud 2023.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wlanboy committed Jan 4, 2024
1 parent d9ba7fb commit eabd572
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests=true
- name: Publish to Registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/githubpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests=true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests=true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jre-jammy
FROM eclipse-temurin:21-jre-jammy
VOLUME /tmp
ARG JAR_FILE
ADD ${JAR_FILE} app.jar
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline {
agent any
tools {
jdk 'java11slave'
jdk 'java21slave'
}
options {
buildDiscarder(logRotator(numToKeepStr: '1'))
Expand Down
10 changes: 4 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.6</version>
<version>3.2.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.wlanboy</groupId>
Expand All @@ -18,11 +18,11 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>17</java.version>
<java.version>21</java.version>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies -->
<spring-cloud.version>2022.0.2</spring-cloud.version>
<spring-cloud.version>2023.0.0</spring-cloud.version>
<!-- https://mvnrepository.com/artifact/net.logstash.logback/logstash-logback-encoder -->
<logstash-logback.version>7.3</logstash-logback.version>
<logstash-logback.version>7.4</logstash-logback.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -111,8 +111,6 @@
<additionalProperties>
<encoding.source>UTF-8</encoding.source>
<encoding.reporting>UTF-8</encoding.reporting>
<java.source>${maven.compiler.source}</java.source>
<java.target>${maven.compiler.target}</java.target>
</additionalProperties>
</configuration>
</execution>
Expand Down

0 comments on commit eabd572

Please sign in to comment.