-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSCSCI-995-jackson-databind-bump (#1515)
* Upgraded jackson-databind * Upgraded suppressions * Upgraded suppressions * Spring-boot bump * Added EnableWebMvc annotation * Replaced springfox with springdoc * Reverted springdoc to v1 * Bump spring dependency- management * Gradle package updates * sscs-common bump * sscs-common bump * sscs-common bump * suppression syntax change * sscs-common update * sscs-common and suppression update * update common version * common version * suppression update * sscs-common bump * sscs-common bump to 5.12.12 --------- Co-authored-by: Katalin Kovacs <katalin.kovacs@solirius.com> Co-authored-by: NHAL22 <113360585+NHAL22@users.noreply.github.com>
- Loading branch information
1 parent
d36fb5e
commit 2ed6d1d
Showing
11 changed files
with
93 additions
and
147 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
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,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<suppress until="2024-11-01"> | ||
<cve>CVE-2023-35116</cve> | ||
<cve>CVE-2023-1370</cve> | ||
<suppress until="2024-12-01"> | ||
<cve>CVE-2024-45772</cve> | ||
<cve>CVE-2024-38820</cve> | ||
</suppress> | ||
</suppressions> |
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
31 changes: 17 additions & 14 deletions
31
src/main/java/uk/gov/hmcts/reform/sscs/config/SwaggerConfiguration.java
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,26 +1,29 @@ | ||
package uk.gov.hmcts.reform.sscs.config; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Contact; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import springfox.documentation.builders.PathSelectors; | ||
import springfox.documentation.builders.RequestHandlerSelectors; | ||
import springfox.documentation.spi.DocumentationType; | ||
import springfox.documentation.spring.web.plugins.Docket; | ||
import springfox.documentation.swagger2.annotations.EnableSwagger2; | ||
import uk.gov.hmcts.reform.sscs.BulkScanApplication; | ||
|
||
@Configuration | ||
@EnableSwagger2 | ||
public class SwaggerConfiguration { | ||
|
||
@Value("${spring.application.name}") | ||
private String applicationName; | ||
|
||
@Bean | ||
public Docket api() { | ||
return new Docket(DocumentationType.SWAGGER_2) | ||
.useDefaultResponseMessages(false) | ||
.select() | ||
.apis(RequestHandlerSelectors.basePackage(BulkScanApplication.class.getPackage().getName() + ".controllers")) | ||
.paths(PathSelectors.any()) | ||
.build(); | ||
public OpenAPI openAPI() { | ||
return new OpenAPI() | ||
.info(new Info() | ||
.title(applicationName) | ||
.description("SSCS Bulk Scan API") | ||
.version("v1.0.0") | ||
.contact(new Contact() | ||
.name("SSCS") | ||
.url("http://sscs.net/") | ||
.email("sscs@hmcts.net"))); | ||
} | ||
|
||
} |
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
Oops, something went wrong.