-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EPMRPP-93073 migrate to Spring Boot 3 (#14)
* EPMRPP-93073 support Spring Boot 3 * EPMRPP-93073 dependency updates
- Loading branch information
Showing
45 changed files
with
627 additions
and
1,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,4 +105,4 @@ jobs: | |
else | ||
echo 'Verification failed, please check the bundle' 1>&2 | ||
exit 1 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
version=5.13.1 | ||
|
||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
|
||
description=EPAM Report portal. REST Reporting API model | ||
hibernateValidatorVersion=6.1.2.Final | ||
validationApiVersion=2.0.1.Final | ||
junitVersion=4.12 | ||
jupiterVersion=5.8.1 | ||
elApiVersion=3.0.0 | ||
sprindocAnnotationsVersion=1.7.0 | ||
commonsLangVersion=3.9 | ||
mockitoJunitJupiter=3.4.6 | ||
jacksonVersion=2.10.2 | ||
lombokVersion=1.18.30 | ||
hibernateValidatorVersion=8.0.2.Final | ||
junitVersion=5.11.4 | ||
mockitoJunitJupiter=5.14.2 | ||
springDocVersion=2.7.0 | ||
commonsLangVersion=3.17.0 | ||
jacksonVersion=2.18.2 | ||
lombokVersion=1.18.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
jdk: | ||
- openjdk21 | ||
- openjdk21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,34 +16,34 @@ | |
|
||
package com.epam.ta.reportportal.ws.annotations; | ||
|
||
import javax.validation.ConstraintValidator; | ||
import javax.validation.ConstraintValidatorContext; | ||
import java.util.ArrayList; | ||
import jakarta.validation.ConstraintValidator; | ||
import jakarta.validation.ConstraintValidatorContext; | ||
import java.util.Arrays; | ||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a> | ||
*/ | ||
public class InCollectionValidator implements ConstraintValidator<In, Collection<String>> { | ||
|
||
private String[] allowedValues; | ||
private Set<String> allowedValues; | ||
|
||
@Override | ||
public void initialize(In constraintAnnotation) { | ||
allowedValues = new String[constraintAnnotation.allowedValues().length]; | ||
for (int i = 0; i < constraintAnnotation.allowedValues().length; i++) { | ||
allowedValues[i] = constraintAnnotation.allowedValues()[i].toUpperCase(); | ||
} | ||
allowedValues = Arrays.stream(constraintAnnotation.allowedValues()) | ||
.map(String::toUpperCase) | ||
.collect(Collectors.toSet()); | ||
} | ||
|
||
@Override | ||
public boolean isValid(Collection<String> value, ConstraintValidatorContext context) { | ||
List<String> upperCaseList = new ArrayList<>(); | ||
for (String next : value) { | ||
upperCaseList.add(next.toUpperCase()); | ||
} | ||
return Arrays.asList(allowedValues).containsAll(upperCaseList); | ||
List<String> upperCaseList = value.stream() | ||
.map(String::toUpperCase) | ||
.toList(); | ||
|
||
return allowedValues.containsAll(upperCaseList); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
|
||
package com.epam.ta.reportportal.ws.annotations; | ||
|
||
import javax.validation.ConstraintValidator; | ||
import javax.validation.ConstraintValidatorContext; | ||
import jakarta.validation.ConstraintValidator; | ||
import jakarta.validation.ConstraintValidatorContext; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,17 @@ | |
package com.epam.ta.reportportal.ws.reporting; | ||
|
||
import java.util.List; | ||
import javax.validation.Valid; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a> | ||
*/ | ||
@Setter | ||
@Getter | ||
public class BulkInfoUpdateRQ { | ||
|
||
@NotNull | ||
|
@@ -35,56 +39,19 @@ public class BulkInfoUpdateRQ { | |
@Valid | ||
private List<UpdateItemAttributeRQ> attributes; | ||
|
||
public List<Long> getIds() { | ||
return ids; | ||
} | ||
|
||
public void setIds(List<Long> ids) { | ||
this.ids = ids; | ||
} | ||
|
||
public Description getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(Description description) { | ||
this.description = description; | ||
} | ||
|
||
public List<UpdateItemAttributeRQ> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
public void setAttributes(List<UpdateItemAttributeRQ> attributes) { | ||
this.attributes = attributes; | ||
} | ||
|
||
public enum Action { | ||
public enum Action { | ||
DELETE, | ||
UPDATE, | ||
CREATE | ||
} | ||
|
||
public static class Description { | ||
@Setter | ||
@Getter | ||
public static class Description { | ||
|
||
String comment; | ||
|
||
Action action; | ||
|
||
public String getComment() { | ||
return comment; | ||
} | ||
|
||
public void setComment(String comment) { | ||
this.comment = comment; | ||
} | ||
|
||
public Action getAction() { | ||
return action; | ||
} | ||
|
||
public void setAction(Action action) { | ||
this.action = action; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.