Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'java'
id 'io.freefair.lombok' version '8.14.4'
id 'org.springframework.boot' version '3.3.8'
id 'io.spring.dependency-management' version '1.1.6'
id 'org.springframework.boot' version '3.5.8'
id 'io.spring.dependency-management' version '1.1.7'
id 'jacoco'
id 'org.sonarqube' version '6.3.1.5724'
id 'maven-publish'
Expand Down Expand Up @@ -64,7 +64,7 @@ dependencies {
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'

// Spring Doc
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.17'

// ipfs
implementation 'com.github.ipfs:java-ipfs-http-client:1.4.4'
Expand Down
2 changes: 1 addition & 1 deletion iexec-result-proxy-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

dependencies {
implementation platform('org.springframework.boot:spring-boot-dependencies:3.3.8')
implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.8')
implementation "com.iexec.commons:iexec-commons-poco:$iexecCommonsPocoVersion"
implementation "com.iexec.common:iexec-common:$iexecCommonVersion"
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/iexec/resultproxy/ipfs/IpfsService.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2025 IEXEC BLOCKCHAIN TECH
* Copyright 2020-2026 IEXEC BLOCKCHAIN TECH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,8 +31,8 @@
import java.net.URL;
import java.util.Optional;

@Service
@Slf4j
@Service
public class IpfsService implements SmartLifecycle {

private IPFS ipfs;
Expand All @@ -52,7 +52,7 @@ public IpfsService(final IpfsConfig ipfsConfig) {
}

public Optional<byte[]> get(final String ipfsHash) {
if (!isIpfsHash(ipfsHash)){
if (!isIpfsHash(ipfsHash)) {
return Optional.empty();
}
final Multihash filePointer = Multihash.fromBase58(ipfsHash);
Expand Down
22 changes: 18 additions & 4 deletions src/main/java/com/iexec/resultproxy/ipfs/task/IpfsNameService.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2020-2026 IEXEC BLOCKCHAIN TECH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.iexec.resultproxy.ipfs.task;

import lombok.extern.slf4j.Slf4j;
Expand All @@ -11,12 +27,11 @@
*
* /!\ WARN: Mongo volume should be kept between reboots to keep taskId->ipfsHash mapping alive
* */
@Service
@Slf4j
@Service
public class IpfsNameService {


private IpfsNameRepository ipfsNameRepository;
private final IpfsNameRepository ipfsNameRepository;

public IpfsNameService(IpfsNameRepository ipfsNameRepository) {
this.ipfsNameRepository = ipfsNameRepository;
Expand All @@ -38,5 +53,4 @@ public String getIpfsHashForTask(String taskId) {
return "";
}


}