Skip to content

Commit e748ae3

Browse files
authored
Merge branch 'master' into CCD-1246-master
2 parents 18e2e99 + 5e61567 commit e748ae3

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

build.gradle

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
plugins {
22
id 'application'
33
id 'jacoco'
4-
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
5-
id 'org.springframework.boot' version '2.3.4.RELEASE'
4+
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
5+
id 'org.springframework.boot' version '2.4.4'
66
id 'uk.gov.hmcts.java' version '0.12.0'
77
id 'com.github.ben-manes.versions' version '0.28.0'
88
id 'com.github.spacialcircumstances.gradle-cucumber-reporting' version '0.1.23'
99
id 'org.sonarqube' version '2.8'
1010
}
1111

12-
ext['spring-security.version'] = '5.3.9.RELEASE'
12+
ext['spring-security.version'] = '5.4.5'
13+
ext['spring-framework.version'] = '5.3.7'
1314

1415
group = 'uk.gov.hmcts.reform'
1516
version = '0.0.1'
@@ -165,6 +166,9 @@ dependencyCheck {
165166
}
166167

167168
dependencyManagement {
169+
imports {
170+
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2020.0.1"
171+
}
168172
dependencies {
169173
dependency group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.61'
170174
// CVE-2018-10237 - Unbounded memory allocation
@@ -239,8 +243,11 @@ configurations.all {
239243
}
240244

241245
dependencies {
246+
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '2.2.7.RELEASE'
247+
242248
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
243249
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
250+
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: '3.0.1'
244251

245252
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
246253
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation'
@@ -266,17 +273,21 @@ dependencies {
266273
implementation group: 'uk.gov.hmcts.reform', name: 'idam-client', version: '1.5.5'
267274
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-zuul', version: '2.2.3.RELEASE'
268275

269-
implementation "org.springframework.security:spring-security-web:5.3.9.RELEASE"
270-
implementation "org.springframework.security:spring-security-config:5.3.9.RELEASE"
271276
implementation "org.springframework.boot:spring-boot-starter-oauth2-client:2.3.8.RELEASE"
272-
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server:2.3.8.RELEASE"
273277
implementation "com.nimbusds:nimbus-jose-jwt:7.9"
274278
implementation "net.minidev:json-smart:2.3"
279+
implementation "org.springframework.security:spring-security-web:5.4.5"
280+
implementation "org.springframework.security:spring-security-config:5.4.5"
281+
implementation "org.springframework.boot:spring-boot-starter-oauth2-client:2.4.5"
282+
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server:2.4.5"
283+
275284
implementation "io.github.openfeign:feign-httpclient:11.0"
285+
testCompile 'io.github.openfeign:feign-jackson:10.7.0'
286+
testCompile group: 'io.github.openfeign.form', name: 'feign-form', version: '3.8.0'
287+
compile group: 'io.github.openfeign.form', name: 'feign-form-spring', version: '3.8.0'
276288
implementation "com.github.ben-manes.caffeine:caffeine:2.7.0"
277289
implementation "org.apache.httpcomponents:httpclient:4.5.13"
278290

279-
280291
implementation group: 'javax.inject', name: 'javax.inject', version: '1'
281292
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.3.7'
282293
implementation 'uk.gov.service.notify:notifications-java-client:3.15.1-RELEASE'
@@ -302,7 +313,7 @@ dependencies {
302313
integrationTestImplementation sourceSets.main.runtimeClasspath
303314
integrationTestImplementation sourceSets.test.runtimeClasspath
304315

305-
testImplementation group: 'com.github.hmcts', name: 'befta-fw', version: '6.14.2'
316+
testImplementation group: 'com.github.hmcts', name: 'ccd-test-definitions', version: '7.0.0'
306317

307318
functionalTestImplementation sourceSets.main.runtimeClasspath
308319
functionalTestImplementation sourceSets.test.runtimeClasspath

config/owasp/suppressions.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,5 @@
2525
<cve>CVE-2007-1651</cve>
2626
<cve>CVE-2007-1652</cve>
2727
</suppress>
28-
29-
<suppress>
30-
<cve>CVE-2021-22118</cve>
31-
</suppress>
3228

3329
</suppressions>

src/functionalTest/java/uk/gov/hmcts/reform/managecase/befta/ManageCaseAssignmentTestAutomationAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
import uk.gov.hmcts.befta.DefaultBeftaTestDataLoader;
55
import uk.gov.hmcts.befta.DefaultTestAutomationAdapter;
66
import uk.gov.hmcts.befta.dse.ccd.TestDataLoaderToDefinitionStore;
7+
import uk.gov.hmcts.befta.BeftaMain;
78

89
public class ManageCaseAssignmentTestAutomationAdapter extends DefaultTestAutomationAdapter {
910

10-
private final TestDataLoaderToDefinitionStore loader = new TestDataLoaderToDefinitionStore(this);
11+
private TestDataLoaderToDefinitionStore loader = new TestDataLoaderToDefinitionStore(this,
12+
"uk/gov/hmcts/ccd/test_definitions/valid", BeftaMain.getConfig().getDefinitionStoreUrl());
1113

1214
@Override
1315
public BeftaTestDataLoader getDataLoader() {

src/test/java/uk/gov/hmcts/reform/managecase/api/controller/NoticeOfChangeControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static class BaseMvcTest {
147147
@Nested
148148
@DisplayName("GET /noc/noc-questions")
149149
@SuppressWarnings({"PMD.AvoidDuplicateLiterals", "PMD.JUnitTestsShouldIncludeAssert", "PMD.ExcessiveImports"})
150-
class GetNoticeOfChangeQuestions extends BaseMvcTest {
150+
class GetNoticeOfChangeQuestions {
151151

152152
@Nested
153153
@DisplayName("GET /noc/noc-questions")

0 commit comments

Comments
 (0)