Skip to content

Commit 9c0d8d6

Browse files
authored
Merge pull request #139 from iExecBlockchainComputing/release/8.5.0
Release/8.5.0
2 parents b16ec2a + 24c5413 commit 9c0d8d6

File tree

19 files changed

+352
-183
lines changed

19 files changed

+352
-183
lines changed

CHANGELOG.md

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

33
All notable changes to this project will be documented in this file.
44

5+
## [[8.5.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.5.0) 2024-06-18
6+
7+
### New Features
8+
9+
- Replace `CredentialsService` with `SignerService`. (#137)
10+
11+
### Bug Fixes
12+
13+
- Fix conditions to retrieve a JWT or to allow a result upload. (#132)
14+
15+
### Quality
16+
17+
- Configure Gradle JVM Test Suite Plugin. (#133)
18+
19+
### Dependency Upgrades
20+
21+
- Upgrade to Gradle 8.7. (#134)
22+
- Upgrade to `eclipse-temurin:11.0.22_7-jre-focal`. (#135)
23+
- Upgrade to Spring Boot 2.7.18. (#136)
24+
- Upgrade to `iexec-commons-poco` 4.1.0. (#138)
25+
- Upgrade to `iexce-common` 8.5.0. (#138)
26+
527
## [[8.4.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.4.0) 2024-02-29
628

729
### Deprecation Notices

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.21_9-jre-focal
1+
FROM eclipse-temurin:11.0.22_7-jre-focal
22

33
ARG jar
44

build.gradle

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
22
id 'java'
3-
id 'io.freefair.lombok' version '8.2.2'
4-
id 'org.springframework.boot' version '2.7.17'
3+
id 'io.freefair.lombok' version '8.6'
4+
id 'org.springframework.boot' version '2.7.18'
55
id 'io.spring.dependency-management' version '1.1.4'
66
id 'jacoco'
7-
id 'org.sonarqube' version '4.2.1.3168'
7+
id 'org.sonarqube' version '5.0.0.4638'
88
id 'maven-publish'
99
}
1010

@@ -74,14 +74,6 @@ dependencies {
7474

7575
// expiring map
7676
implementation 'net.jodah:expiringmap:0.5.10'
77-
78-
// test
79-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
80-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
81-
82-
// mongo
83-
testImplementation "org.testcontainers:junit-jupiter:$testContainersVersion"
84-
testImplementation "org.testcontainers:mongodb:$testContainersVersion"
8577
}
8678

8779
dependencyManagement {
@@ -101,12 +93,25 @@ tasks.named("bootJar") {
10193
}
10294
}
10395

104-
test {
105-
useJUnitPlatform()
96+
testing {
97+
suites {
98+
test {
99+
useJUnitJupiter()
100+
dependencies {
101+
implementation 'org.springframework.boot:spring-boot-starter-test'
102+
implementation "org.testcontainers:junit-jupiter:$testContainersVersion"
103+
implementation "org.testcontainers:mongodb:$testContainersVersion"
104+
}
105+
}
106+
}
107+
}
108+
109+
tasks.withType(Test).configureEach {
110+
finalizedBy jacocoTestReport
106111
systemProperty "mongo.image", "mongo:4.4.28-focal"
107112
}
108113

109-
tasks.register('itest') {
114+
tasks.register('itest', Test) {
110115
group 'Verification'
111116
description 'Runs the integration tests.'
112117
}
@@ -117,7 +122,6 @@ jacocoTestReport {
117122
xml.required = true
118123
}
119124
}
120-
tasks.test.finalizedBy tasks.jacocoTestReport
121125
tasks.sonarqube.dependsOn tasks.jacocoTestReport
122126

123127
publishing {

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version=8.4.0
2-
iexecCommonVersion=8.4.0
3-
iexecCommonsPocoVersion=3.2.0
1+
version=8.5.0
2+
iexecCommonVersion=8.5.0
3+
iexecCommonsPocoVersion=4.1.0
44

55
nexusUser
66
nexusPassword

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

iexec-result-proxy-library/build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ plugins {
88
dependencies {
99
implementation "com.iexec.commons:iexec-commons-poco:$iexecCommonsPocoVersion"
1010
implementation "com.iexec.common:iexec-common:$iexecCommonVersion"
11-
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
12-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
1311
}
1412

1513
java {
@@ -19,8 +17,19 @@ java {
1917
withSourcesJar()
2018
}
2119

22-
test {
23-
useJUnitPlatform()
20+
testing {
21+
suites {
22+
test {
23+
useJUnitJupiter()
24+
dependencies {
25+
implementation 'org.junit.jupiter:junit-jupiter:5.8.2'
26+
}
27+
}
28+
}
29+
}
30+
31+
tasks.withType(Test).configureEach {
32+
finalizedBy jacocoTestReport
2433
}
2534

2635
// sonarqube code coverage requires jacoco XML report
@@ -29,7 +38,6 @@ jacocoTestReport {
2938
xml.required = true
3039
}
3140
}
32-
tasks.test.finalizedBy tasks.jacocoTestReport
3341

3442
publishing {
3543
publications {
@@ -43,7 +51,7 @@ publishing {
4351
username nexusUser
4452
password nexusPassword
4553
}
46-
url = project.hasProperty("nexusUrl")? project.nexusUrl: ''
54+
url = project.hasProperty("nexusUrl") ? project.nexusUrl : ''
4755
}
4856
}
4957
}

src/main/java/com/iexec/resultproxy/authorization/AuthorizationError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public enum AuthorizationError {
2020
EMPTY_PARAMS_UNAUTHORIZED,
2121
NO_MATCH_ONCHAIN_TYPE,
2222
GET_CHAIN_TASK_FAILED,
23-
TASK_NOT_ACTIVE,
23+
TASK_FINAL_DEADLINE_REACHED,
2424
GET_CHAIN_DEAL_FAILED,
2525
INVALID_SIGNATURE;
2626
}

0 commit comments

Comments
 (0)