Skip to content

Commit 150eee4

Browse files
Upgrade to Java 17 (#149)
1 parent e2d7f3a commit 150eee4

File tree

9 files changed

+20
-23
lines changed

9 files changed

+20
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
## [[NEXT]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/vNEXT) 2025
66

7+
### Dependency Upgrades
8+
9+
- Upgrade to `eclipse-temurin:17.0.13_11-jre-focal`. (#149)
10+
- Upgrade to Spring Boot 3.0.13. (#149)
11+
- Upgrade to Spring Doc OpenAPI 2.6.0. (#149)
12+
713
## [[8.6.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.6.0) 2024-12-20
814

915
### Quality

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.24_8-jre-focal
1+
FROM eclipse-temurin:17.0.13_11-jre-focal
22

33
ARG jar
44

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'java'
33
id 'io.freefair.lombok' version '8.10.2'
4-
id 'org.springframework.boot' version '2.7.18'
4+
id 'org.springframework.boot' version '3.0.13'
55
id 'io.spring.dependency-management' version '1.1.6'
66
id 'jacoco'
77
id 'org.sonarqube' version '5.1.0.4882'
@@ -40,8 +40,8 @@ allprojects {
4040
toolchain {
4141
languageVersion.set(JavaLanguageVersion.of(17))
4242
}
43-
sourceCompatibility = "11"
44-
targetCompatibility = "11"
43+
sourceCompatibility = JavaVersion.VERSION_17
44+
targetCompatibility = JavaVersion.VERSION_17
4545
}
4646
}
4747

@@ -62,7 +62,7 @@ dependencies {
6262
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
6363

6464
// Spring Doc
65-
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
65+
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
6666

6767
// ipfs
6868
implementation 'com.github.ipfs:java-ipfs-http-client:1.4.0'

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version=8.6.0
2-
iexecCommonVersion=8.6.0
3-
iexecCommonsPocoVersion=4.2.0
2+
iexecCommonVersion=8.6.0-NEXT-SNAPSHOT
3+
iexecCommonsPocoVersion=4.2.0-NEXT-SNAPSHOT
44

55
nexusUser
66
nexusPassword

iexec-result-proxy-library/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ plugins {
66
}
77

88
dependencies {
9+
implementation platform('org.springframework.boot:spring-boot-dependencies:3.0.13')
910
implementation "com.iexec.commons:iexec-commons-poco:$iexecCommonsPocoVersion"
1011
implementation "com.iexec.common:iexec-common:$iexecCommonVersion"
1112
}
1213

1314
java {
14-
sourceCompatibility = "11"
15-
targetCompatibility = "11"
15+
sourceCompatibility = JavaVersion.VERSION_17
16+
targetCompatibility = JavaVersion.VERSION_17
1617
withJavadocJar()
1718
withSourcesJar()
1819
}
@@ -21,9 +22,6 @@ testing {
2122
suites {
2223
test {
2324
useJUnitJupiter()
24-
dependencies {
25-
implementation 'org.junit.jupiter:junit-jupiter:5.8.2'
26-
}
2725
}
2826
}
2927
}

src/main/java/com/iexec/resultproxy/chain/ChainConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2020-2025 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,12 +18,10 @@
1818

1919
import lombok.Value;
2020
import org.springframework.boot.context.properties.ConfigurationProperties;
21-
import org.springframework.boot.context.properties.ConstructorBinding;
2221

2322
import java.time.Duration;
2423

2524
@Value
26-
@ConstructorBinding
2725
@ConfigurationProperties(prefix = "chain")
2826
//TODO: validate configuration property names and use the same set of names everywhere (blockchain-adapter-api, sms)
2927
public class ChainConfig {

src/main/java/com/iexec/resultproxy/ipfs/IpfsConfig.java

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

33
import lombok.Data;
44
import org.springframework.boot.context.properties.ConfigurationProperties;
5-
import org.springframework.boot.context.properties.ConstructorBinding;
65

76
@Data
8-
@ConstructorBinding
97
@ConfigurationProperties(prefix = "ipfs")
108
public class IpfsConfig {
119
private final String host;

src/main/java/com/iexec/resultproxy/jwt/JwtConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2022-2025 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,10 +18,8 @@
1818

1919
import lombok.Data;
2020
import org.springframework.boot.context.properties.ConfigurationProperties;
21-
import org.springframework.boot.context.properties.ConstructorBinding;
2221

2322
@Data
24-
@ConstructorBinding
2523
@ConfigurationProperties(prefix = "jwt")
2624
public class JwtConfig {
2725
private final String keyPath;

src/main/java/com/iexec/resultproxy/version/VersionController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2023 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2023-2025 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,13 +18,12 @@
1818

1919
import io.micrometer.core.instrument.Gauge;
2020
import io.micrometer.core.instrument.Metrics;
21+
import jakarta.annotation.PostConstruct;
2122
import org.springframework.boot.info.BuildProperties;
2223
import org.springframework.http.ResponseEntity;
2324
import org.springframework.web.bind.annotation.GetMapping;
2425
import org.springframework.web.bind.annotation.RestController;
2526

26-
import javax.annotation.PostConstruct;
27-
2827
@RestController
2928
public class VersionController {
3029

0 commit comments

Comments
 (0)