@@ -16,7 +16,7 @@ version = '0.0.1'
1616
1717java {
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( " $p roject . buildDir / reports/pmd" )
102+ reportsDir = layout . buildDirectory . dir( " reports/pmd" ). get() . asFile
103103 ruleSetFiles = files(" config/pmd/ruleset.xml" )
104104}
105105
106106jacocoTestReport {
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}
0 commit comments