Skip to content

Commit bcebfe6

Browse files
committed
fix(companieshouseapi): #346 update the gov companieshouse url in config
fix(build.gradle): #346 revert logback 1.5.13 version to fix parse error
1 parent be75463 commit bcebfe6

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ updates:
1212
open-pull-requests-limit: 10
1313
commit-message:
1414
prefix: ci
15-
include: scope
15+
include: scope

build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ dependencies {
3737
implementation 'org.springframework.boot:spring-boot-starter-web'
3838
implementation 'org.springframework.boot:spring-boot-starter-actuator'
3939
testImplementation('org.springframework.boot:spring-boot-starter-test')
40-
// Upgrade transient vulnerabilities to fix vulnerabilities
41-
configurations.all {
42-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
43-
// https://docs.gradle.org/current/userguide/resolution_rules.html
44-
if (details.requested.group == 'ch.qos.logback' && details.requested.name == 'logback-classic') {
45-
details.useVersion '1.5.13'
46-
}
47-
}
48-
}
4940
// Cucumber Dependencies for BDD
5041
testImplementation "io.cucumber:cucumber-java:${ioCucumberVersion}"
5142
testImplementation "io.cucumber:cucumber-junit:${ioCucumberVersion}"

src/main/java/com/uk/companieshouse/connector/CompaniesHouseConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public CompaniesHouseGovUKResponse getCompaniesHouseDetails(String crn) {
3333
restTemplate.getInterceptors().add(
3434
new BasicAuthenticationInterceptor(authUsername, ""));
3535

36-
log.debug("CompaniesHouseConnector:getCompaniesHouseDetails: Make External call to {} with CRN {}",
36+
log.debug("CompaniesHouseConnector:getCompaniesHouseDetails: Make External call to: {} with CRN: {}",
3737
govCompaniesHouseEndpoint, crn);
3838
ResponseEntity<CompaniesHouseGovUKResponse> responseEntity = restTemplate
3939
.getForEntity(govCompaniesHouseEndpoint, CompaniesHouseGovUKResponse.class, crn);

src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ logging:
1919
companieshouse: DEBUG
2020

2121
govCompaniesHouse:
22-
endpoint: https://api.companieshouse.gov.uk/search/companies?q={companyRef}
22+
endpoint: https://api.company-information.service.gov.uk/search/companies?q={crn}
2323
authUserName: dummy-auth-user

0 commit comments

Comments
 (0)