Skip to content

Commit d707b8e

Browse files
committed
Migrated to Java 25, Springboot 3.5.7
1 parent 9bd3161 commit d707b8e

File tree

6 files changed

+81
-59
lines changed

6 files changed

+81
-59
lines changed

.github/workflows/tf-queue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v5
16-
- name: Set up JDK 21
16+
- name: Set up JDK 25
1717
uses: actions/setup-java@v5
1818
with:
19-
java-version: 21
19+
java-version: 25
2020
distribution: 'temurin'
2121
- name: Build with Maven
2222
run: mvn -B package --file pom.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
# Running
2323

2424
**Requirements**
25-
- Java 11
25+
- Java 25
2626
- Kafka
27-
- Maven 3.8
27+
- Maven 3.11
2828

2929
* * *
3030

pom.xml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,22 @@
2222
<parent>
2323
<groupId>org.springframework.boot</groupId>
2424
<artifactId>spring-boot-starter-parent</artifactId>
25-
<version>3.5.6</version>
25+
<version>3.5.7</version>
2626
<relativePath/>
2727
</parent>
2828

2929
<properties>
3030
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3131
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
32-
<java.version>21</java.version>
32+
<java.version>25</java.version>
3333
<maven.compiler.source>${java.version}</maven.compiler.source>
3434
<maven.compiler.target>${java.version}</maven.compiler.target>
3535

3636
<jsonwebtoken.version>0.13.0</jsonwebtoken.version>
37-
<springdoc-openapi-starter-webmvc-ui.version>2.8.13</springdoc-openapi-starter-webmvc-ui.version>
38-
<switcher-client.version>2.4.1</switcher-client.version>
37+
<springdoc-openapi-starter-webmvc-ui.version>2.8.14</springdoc-openapi-starter-webmvc-ui.version>
38+
<switcher-client.version>2.5.1</switcher-client.version>
39+
40+
<maven-compiler-plugin.version>3.14.1</maven-compiler-plugin.version>
3941
</properties>
4042

4143
<profiles>
@@ -142,6 +144,22 @@
142144
<groupId>org.springframework.boot</groupId>
143145
<artifactId>spring-boot-maven-plugin</artifactId>
144146
</plugin>
147+
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-compiler-plugin</artifactId>
151+
<version>${maven-compiler-plugin.version}</version>
152+
<configuration>
153+
<source>${java.version}</source>
154+
<target>${java.version}</target>
155+
<annotationProcessorPaths>
156+
<path>
157+
<groupId>org.projectlombok</groupId>
158+
<artifactId>lombok</artifactId>
159+
</path>
160+
</annotationProcessorPaths>
161+
</configuration>
162+
</plugin>
145163
</plugins>
146164
</build>
147165
</project>

src/main/java/com/trackerforce/queue/config/OpenAPIConfiguration.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@
1111
@Configuration
1212
public class OpenAPIConfiguration {
1313

14-
private final ConfigProperties configProperties;
14+
private final ServiceConfig.Docs docs;
1515

16-
public OpenAPIConfiguration(ConfigProperties configProperties) {
17-
this.configProperties = configProperties;
16+
public OpenAPIConfiguration(ServiceConfig serviceConfig) {
17+
this.docs = serviceConfig.docs();
1818
}
1919

2020
@Bean
2121
public OpenAPI customOpenAPI() {
2222
return new OpenAPI()
23-
.addServersItem(new Server().url(configProperties.url()))
23+
.addServersItem(new Server().url(docs.url()))
2424
.info(getInfo());
2525
}
2626

2727
private Info getInfo() {
2828
return new Info()
29-
.title(configProperties.title())
30-
.description(configProperties.description())
31-
.version(configProperties.version())
29+
.title(docs.title())
30+
.description(docs.description())
31+
.version(docs.version())
3232
.contact(getContact())
3333
.license(getLicense());
3434
}
3535

3636
private License getLicense() {
3737
return new License()
38-
.name(configProperties.license().type())
39-
.url(configProperties.license().url());
38+
.name(docs.license().type())
39+
.url(docs.license().url());
4040
}
4141

4242
private Contact getContact() {
4343
return new Contact()
44-
.name(configProperties.contact().author())
45-
.email(configProperties.contact().email());
44+
.name(docs.contact().author())
45+
.email(docs.contact().email());
4646
}
4747

4848
}

src/main/java/com/trackerforce/queue/config/ConfigProperties.java renamed to src/main/java/com/trackerforce/queue/config/ServiceConfig.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@
22

33
import org.springframework.boot.context.properties.ConfigurationProperties;
44

5-
@ConfigurationProperties(prefix = "service.docs")
6-
public record ConfigProperties(
5+
@ConfigurationProperties(prefix = "service")
6+
public record ServiceConfig(
7+
Docs docs
8+
) {
9+
10+
public record Docs(
711
String title,
812
String description,
913
String version,
14+
String releaseTime,
1015
String url,
1116
License license,
1217
Contact contact) {
1318

14-
public record License(
19+
public record License(
1520
String type,
16-
String url) {}
21+
String url) { }
1722

18-
public record Contact(
23+
public record Contact(
1924
String author,
20-
String email) {}
25+
String email) { }
26+
}
2127
}
Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
11
{
2-
"data": {
3-
"domain": {
4-
"name": "Trackerforce",
5-
"version": 1632013079337,
6-
"group": [
7-
{
8-
"name": "Services",
9-
"config": [
10-
{
11-
"key": "ASYNC_QUEUE",
12-
"strategies": [],
13-
"components": [
14-
"queue-service"
15-
],
16-
"description": "Uses asynchronous calls to the streaming agent.",
17-
"activated": false
18-
},
19-
{
20-
"key": "ML_SERVICE",
21-
"strategies": [],
22-
"components": [
23-
"queue-service"
24-
],
25-
"description": "Invoke Machine Learning Engine Service",
26-
"activated": true
27-
}
28-
],
29-
"description": "",
30-
"activated": true
31-
}
32-
],
33-
"description": "",
34-
"activated": true
35-
}
2+
"domain": {
3+
"name": "Trackerforce",
4+
"version": 1632013079337,
5+
"group": [
6+
{
7+
"name": "Services",
8+
"config": [
9+
{
10+
"key": "ASYNC_QUEUE",
11+
"strategies": [],
12+
"components": [
13+
"queue-service"
14+
],
15+
"description": "Uses asynchronous calls to the streaming agent.",
16+
"activated": false
17+
},
18+
{
19+
"key": "ML_SERVICE",
20+
"strategies": [],
21+
"components": [
22+
"queue-service"
23+
],
24+
"description": "Invoke Machine Learning Engine Service",
25+
"activated": true
26+
}
27+
],
28+
"description": "",
29+
"activated": true
30+
}
31+
],
32+
"description": "",
33+
"activated": true
3634
}
3735
}

0 commit comments

Comments
 (0)