diff --git a/pom.xml b/pom.xml
index 0ff0140..3ab900f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
com.powsybl
powsybl-parent-ws
- 12
+ 15
@@ -44,7 +44,7 @@
- 25
+ 26
@@ -71,8 +71,8 @@
spring-boot-maven-plugin
- pl.project13.maven
- git-commit-id-plugin
+ io.github.git-commit-id
+ git-commit-id-maven-plugin
@@ -110,7 +110,7 @@
org.springdoc
- springdoc-openapi-ui
+ springdoc-openapi-starter-webmvc-ui
@@ -151,8 +151,8 @@
test
- com.github.tomakehurst
- wiremock-jre8
+ org.wiremock
+ wiremock
test
diff --git a/src/main/java/org/gridsuite/caseimport/server/CaseImportController.java b/src/main/java/org/gridsuite/caseimport/server/CaseImportController.java
index 73fa2fc..bef5a50 100644
--- a/src/main/java/org/gridsuite/caseimport/server/CaseImportController.java
+++ b/src/main/java/org/gridsuite/caseimport/server/CaseImportController.java
@@ -35,8 +35,8 @@ public class CaseImportController {
@PostMapping(value = "/cases", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = APPLICATION_JSON_VALUE)
@Operation(summary = "Import a case in the parametrized directory")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "The case is imported"),
- @ApiResponse(responseCode = "400", description = "Invalid case file"),
- @ApiResponse(responseCode = "422", description = "File with wrong extension")})
+ @ApiResponse(responseCode = "400", description = "Invalid case file"),
+ @ApiResponse(responseCode = "422", description = "File with wrong extension")})
public ResponseEntity importCase(@Parameter(description = "case file") @RequestPart("caseFile") MultipartFile caseFile,
@RequestHeader("userId") String userId) {
caseImportService.importCaseInDirectory(caseFile, userId);
diff --git a/src/main/java/org/gridsuite/caseimport/server/CaseService.java b/src/main/java/org/gridsuite/caseimport/server/CaseService.java
index c3641ce..6798273 100644
--- a/src/main/java/org/gridsuite/caseimport/server/CaseService.java
+++ b/src/main/java/org/gridsuite/caseimport/server/CaseService.java
@@ -73,7 +73,7 @@ UUID importCase(MultipartFile multipartFile) {
return caseUuid;
}
- private static CaseImportException wrapRemoteError(String response, HttpStatus statusCode) {
+ private static CaseImportException wrapRemoteError(String response, HttpStatusCode statusCode) {
if (!"".equals(response)) {
throw new CaseImportException(CaseImportException.Type.REMOTE_ERROR, response);
} else {