Skip to content

Commit

Permalink
breaking: Refactored package name to it.pagopa.swclient.mil and migra…
Browse files Browse the repository at this point in the history
…ted Quarkus to version 3.0 (#17)
  • Loading branch information
dsabacn authored May 8, 2023
1 parent 4b99893 commit d5eb171
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 43 deletions.
13 changes: 2 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,11 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
<quarkus.platform.version>3.0.2.Final</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.0.0</surefire-plugin.version>
<surefire-plugin.version>3.0.0-M9</surefire-plugin.version>
</properties>

<!--
<distributionManagement>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/pagopa</url>
</repository>
</distributionManagement>
-->

<dependencyManagement>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
*
* 26 nov 2022
*/
package it.gov.pagopa.swclient.mil;
package it.pagopa.swclient.mil;

import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import javax.validation.ConstraintViolationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import jakarta.validation.ConstraintViolationException;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;

import io.quarkus.logging.Log;
import it.gov.pagopa.swclient.mil.bean.Errors;
import it.pagopa.swclient.mil.bean.Errors;

/**
* Normalize the body of Constraint Violation Exception (BAD REQUEST) handled directly by Quarkus
Expand Down Expand Up @@ -64,7 +64,7 @@ public String getDescription() {
}

/**
* @see javax.ws.rs.ext.ExceptionMapper#toResponse(Throwable)
* @see jakarta.ws.rs.ext.ExceptionMapper#toResponse(Throwable)
*/
public Response toResponse(ConstraintViolationException e) {
Map<String, String> errors = e.getConstraintViolations().stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* 26 nov 2022
*/
package it.gov.pagopa.swclient.mil;
package it.pagopa.swclient.mil;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
*
* 28 nov 2022
*/
package it.gov.pagopa.swclient.mil;
package it.pagopa.swclient.mil;

import java.io.IOException;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import jakarta.ws.rs.container.ContainerRequestContext;
import jakarta.ws.rs.container.ContainerRequestFilter;
import jakarta.ws.rs.container.PreMatching;
import jakarta.ws.rs.ext.Provider;

import org.jboss.logging.MDC;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* 6 apr 2023
*/
package it.gov.pagopa.swclient.mil.bean;
package it.pagopa.swclient.mil.bean;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
*
* 26 nov 2022
*/
package it.gov.pagopa.swclient.mil.bean;
package it.pagopa.swclient.mil.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import javax.ws.rs.HeaderParam;
import it.pagopa.swclient.mil.ErrorCode;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import jakarta.ws.rs.HeaderParam;

import it.gov.pagopa.swclient.mil.ErrorCode;
import it.gov.pagopa.swclient.mil.validation.constraints.MerchantIdNotNullForPos;
import it.pagopa.swclient.mil.validation.constraints.MerchantIdNotNullForPos;

/**
* Common header attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* 26 nov 2022
*/
package it.gov.pagopa.swclient.mil.bean;
package it.pagopa.swclient.mil.bean;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* 20 gen 2023
*/
package it.gov.pagopa.swclient.mil.validation.constraints;
package it.pagopa.swclient.mil.validation.constraints;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
Expand All @@ -12,8 +12,8 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

/**
* If Channel equals to POS, the MerchantId must not be null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
*
* 20 gen 2023
*/
package it.gov.pagopa.swclient.mil.validation.constraints;
package it.pagopa.swclient.mil.validation.constraints;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import it.gov.pagopa.swclient.mil.bean.Channel;
import it.gov.pagopa.swclient.mil.bean.CommonHeader;
import it.pagopa.swclient.mil.bean.Channel;
import it.pagopa.swclient.mil.bean.CommonHeader;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;

/**
* If Channel equals to POS, the MerchantId must not be null.
Expand All @@ -18,7 +17,7 @@
*/
public class MerchantIdNotNullForPosValidator implements ConstraintValidator<MerchantIdNotNullForPos, CommonHeader> {
/**
* @see javax.validation.ConstraintValidator#isValid(Object, ConstraintValidatorContext)
* @see jakarta.validation.ConstraintValidator#isValid(Object, ConstraintValidatorContext)
*/
@Override
public boolean isValid(CommonHeader commonHeader, ConstraintValidatorContext context) {
Expand Down

0 comments on commit d5eb171

Please sign in to comment.