Skip to content

Commit 161dd5d

Browse files
authored
FACT-1800 17 to 21 changes (#1196)
* FACT-1800 17 to 21 changes * added a little in jacoco * added more changes * added application.yaml for unit tests * changed workflow and readme
1 parent 49589c4 commit 161dd5d

File tree

6 files changed

+30
-10
lines changed

6 files changed

+30
-10
lines changed

.github/workflows/publish-openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
SWAGGER_PUBLISHER_API_TOKEN: ${{ secrets.SWAGGER_PUBLISHER_API_TOKEN }}
1212
with:
1313
test_to_run: 'uk.gov.hmcts.reform.bulkscan.payment.processor.config.SwaggerPublisher'
14-
java_version: 17
14+
java_version: 21

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
ARG APP_INSIGHTS_AGENT_VERSION=3.4.8
1+
ARG APP_INSIGHTS_AGENT_VERSION=3.5.2
22

33
# Application image
4-
FROM hmctspublic.azurecr.io/base/java:17-distroless
4+
FROM hmctspublic.azurecr.io/base/java:21-distroless
55

66
COPY lib/applicationinsights.json /opt/app/
77

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Bulk Scan Payment Processor retrieves service bus queue messages from the pa
1010
## Getting Started
1111
### Prerequisites
1212

13-
- [JDK 17](https://www.oracle.com/java)
13+
- [JDK 21](https://www.oracle.com/java)
1414
- Project requires Spring Boot v3.x to be present
1515

1616
## Quick Start

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = '0.0.1'
1616

1717
java {
1818
toolchain {
19-
languageVersion = JavaLanguageVersion.of(17)
19+
languageVersion = JavaLanguageVersion.of(21)
2020
}
2121
}
2222

@@ -99,16 +99,16 @@ pmd {
9999
toolVersion = "6.55.0"
100100
ignoreFailures = true
101101
sourceSets = [sourceSets.main, sourceSets.test, sourceSets.functionalTest, sourceSets.integrationTest, sourceSets.smokeTest]
102-
reportsDir = file("$project.buildDir/reports/pmd")
102+
reportsDir = layout.buildDirectory.dir("reports/pmd").get().asFile
103103
ruleSetFiles = files("config/pmd/ruleset.xml")
104104
}
105105

106106
jacocoTestReport {
107107
executionData(test, integration)
108108
reports {
109-
xml.required = true
110-
csv.required = false
111-
xml.outputLocation = file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
109+
xml.required.set(true)
110+
csv.required.set(false)
111+
xml.outputLocation.set(layout.buildDirectory.file("reports/jacoco/test/jacocoTestReport.xml"))
112112
}
113113
afterEvaluate {
114114
getClassDirectories().from = getClassDirectories().files.collect {
@@ -125,6 +125,7 @@ sonarqube {
125125
properties {
126126
property "sonar.projectName", "Reform :: Bulk Scan Payment Processor"
127127
property "sonar.projectKey", "uk.gov.hmcts.reform:bulk-scan-payment-processor"
128+
property "sonar.coverage.jacoco.xmlReportPaths", jacocoTestReport.reports.xml.outputLocation.get().asFile.absolutePath
128129
property "sonar.exclusions", "**/config/**,**/Application.java,**/service/servicebus/JmsPaymentMessageProcessor.java"
129130
}
130131
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pay-hub:
2+
api:
3+
url: ${PAY_HUB_URL:AAAAAAAA}
4+
5+
bulk-scan-procesor:
6+
api:
7+
url: ${PROCESSOR_URL:AAAAAAAA}
8+
9+
idam:
10+
s2s-auth:
11+
url: ${S2S_URL:http://localhost:4552}
12+
secret: ${S2S_SECRET:AAAAAAAAAAAAAAAA}
13+
api:
14+
url: ${IDAM_API_URL:AAAAAAAA}
15+
16+
core_case_data:
17+
api:
18+
url: ${CORE_CASE_DATA_API_URL:AAAAAAAA}

0 commit comments

Comments
 (0)