diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64a7ef9..7ea3814 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ on: env: GH_USER_NAME: github.actor SCRIPTS_VERSION: 5.10.0 - BOM_VERSION: 5.10.0 + BOM_VERSION: 5.11.0 jobs: release: diff --git a/build.gradle b/build.gradle index c45f22c..db9d84a 100644 --- a/build.gradle +++ b/build.gradle @@ -22,18 +22,9 @@ apply from: scriptsUrl + '/build-quality.gradle' repositories { - mavenCentral() - if (releaseMode) { - dependencyRepos.forEach { path -> - maven { - setUrl("https://maven.pkg.github.com/reportportal/${path}") - credentials { - username = findProperty("githubUserName") - password = findProperty("githubToken") - } - } - } - } else { + mavenCentral { url "https://repo1.maven.org/maven2" } + + if (!releaseMode) { maven { url 'https://jitpack.io' } } } @@ -42,7 +33,7 @@ repositories { dependencyManagement { imports { mavenBom 'org.springframework.boot:spring-boot-dependencies:2.1.5.RELEASE' - mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.github.reportportal:commons-bom:6aa55fc0') + mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:' + getProperty('bom.version') : 'com.github.reportportal:commons-bom:b7acb00') } } @@ -50,7 +41,7 @@ dependencies { if (releaseMode) { compile 'com.epam.reportportal:commons-model' } else { - compile 'com.github.reportportal:commons-model:232e69a5' + compile 'com.github.reportportal:commons-model:83f012f' } compile 'org.slf4j:slf4j-api' diff --git a/gradle.properties b/gradle.properties index dc4a068..1668d2c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=5.10.1 +version=5.11.0 description=EPAM Report portal. Report Portal Validation and Error Handling Commons \ No newline at end of file diff --git a/src/main/java/com/epam/ta/reportportal/commons/exception/rest/StatusCodeMapping.java b/src/main/java/com/epam/ta/reportportal/commons/exception/rest/StatusCodeMapping.java index 8708a97..384d8c5 100644 --- a/src/main/java/com/epam/ta/reportportal/commons/exception/rest/StatusCodeMapping.java +++ b/src/main/java/com/epam/ta/reportportal/commons/exception/rest/StatusCodeMapping.java @@ -38,6 +38,7 @@ private StatusCodeMapping() { private static final long serialVersionUID = 1L; { + put(ErrorType.NOT_FOUND, HttpStatus.NOT_FOUND); put(ErrorType.PROJECT_NOT_FOUND, HttpStatus.NOT_FOUND); put(ErrorType.LAUNCH_NOT_FOUND, HttpStatus.NOT_FOUND); put(ErrorType.TEST_ITEM_NOT_FOUND, HttpStatus.NOT_FOUND);