-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
572 lines (469 loc) · 21.2 KB
/
build.gradle
File metadata and controls
572 lines (469 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
plugins {
id 'idea'
id 'application'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'io.spring.dependency-management' version '1.1.7'
id 'org.springframework.boot' version '3.4.4'
id 'org.owasp.dependencycheck' version '12.2.0'
id 'com.github.ben-manes.versions' version '0.48.0'
id 'org.sonarqube' version '5.1.0.4882'
id 'info.solidsoft.pitest' version '1.15.0'
id 'io.freefair.lombok' version '8.10.2'
// If Pact version is changed, make sure serenity report works.
id 'au.com.dius.pact' version '4.6.17'
id 'net.serenity-bdd.serenity-gradle-plugin' version '4.2.33'
id 'org.flywaydb.flyway' version '9.3.0'
}
group = 'uk.gov.hmcts.reform'
version = '0.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
// https://github.com/gradle/gradle/issues/16791
tasks.withType(JavaExec).configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}
sourceSets {
testUtils {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/testUtils/java')
}
resources.srcDir file('src/testUtils/resources')
}
functionalTest {
java {
compileClasspath += testUtils.output
runtimeClasspath += testUtils.output
srcDir file('src/functionalTest/java')
}
resources.srcDir file('src/functionalTest/resources')
}
integrationTest {
java {
compileClasspath += testUtils.output
runtimeClasspath += testUtils.output
srcDir file('src/integrationTest/java')
}
resources.srcDir file('src/integrationTest/resources')
}
smokeTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/smokeTest/java')
}
resources.srcDir file('src/smokeTest/resources')
}
contractTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/contractTest/java')
}
resources.srcDir file('src/contractTest/resources')
}
}
tasks.withType(Copy) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Werror"
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}
test {
failFast = true
}
task functional(type: Test) {
maxParallelForks = (System.getenv('MAX_FT_TESTS_PARALLEL_FORKS') ? System.getenv('MAX_FT_TESTS_PARALLEL_FORKS') : 1) as int
description = "Runs functional tests"
group = "Verification"
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang=ALL-UNNAMED']
// finalizedBy aggregate
}
task integration(type: Test) {
jvmArgs = ['-Xms512m', '-Xmx2048m']
description = "Runs integration tests"
group = "Verification"
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
failFast = true
}
build.dependsOn integration
task smoke(type: Test) {
description = "Runs Smoke Tests"
testClassesDirs = sourceSets.smokeTest.output.classesDirs
classpath = sourceSets.smokeTest.runtimeClasspath
}
project.ext {
pacticipant = 'wa_task_management_api'
pacticipantVersion = getCheckedOutGitCommitHash()
}
checkstyle {
maxWarnings = 0
toolVersion = '10.26.1'
getConfigDirectory().set(new File(rootDir, 'config/checkstyle'))
}
pmd {
toolVersion = "6.40.0"
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/pmd")
// https://github.com/pmd/pmd/issues/876
ruleSets = []
ruleSetFiles = files("config/pmd/ruleset.xml")
}
jacocoTestCoverageVerification {
violationRules {
rule {
excludes = ["com.gargoylesoftware.htmlunit.javascript.host.css.StyleAttributes"]
}
}
}
jacocoTestReport {
dependsOn test, integration
executionData(test, integration)
reports {
xml.required = true
csv.required = false
xml.outputLocation = file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
}
}
pitest {
junit5PluginVersion = '1.2.1'
targetClasses = ['uk.gov.hmcts.reform.wataskmanagementapi.*']
excludedClasses = [
'uk.gov.hmcts.reform.wataskmanagementapi.taskconfiguration.config.*',
'uk.gov.hmcts.reform.wataskmanagementapi.config.*',
'uk.gov.hmcts.reform.wataskmanagementapi.Application'
]
threads = 10
outputFormats = ['XML', 'HTML']
timestampedReports = false
mutationThreshold = 80
}
task tests {
description = "Runs junit , integration and functional tests"
dependsOn test, integration, functional
}
project.tasks['pitest'].group = "Verification"
project.tasks['sonarqube'].dependsOn jacocoTestReport
// Ensures that functional tests index page is generated
// Functional tests should run two tasks "functional" and "aggregate"
gradle.startParameter.continueOnFailure = true
sonarqube {
properties {
property "sonar.projectName", "Reform :: wa-task-management-api"
property "sonar.projectKey", "uk.gov.hmcts.reform:wa-task-management-api"
property "sonar.coverage.jacoco.xmlReportPaths", "${jacocoTestReport.reports.xml.outputLocation}"
property "sonar.pitest.mode", "reuseReport"
property "sonar.pitest.reportsDirectory", "build/reports/pitest"
property "sonar.exclusions", "src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/config/**," +
"src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/Application.java," +
"src/testUtils/java/uk/gov/hmcts/reform/wataskmanagementapi/**," +
"src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/clients/**," +
"src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/domain/entities/search/parameter/**," +
"src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/cft/replicarepository/**"
property "sonar.cpd.exclusions", "src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/services/calendar/**," +
"src/main/java/uk/gov/hmcts/reform/wataskmanagementapi/controllers/TaskActionsController.java,"
}
}
// before committing a change, make sure task still works
dependencyUpdates {
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { qualifier -> version.toUpperCase().contains(qualifier) }
def regex = /^[0-9,.v-]+$/
return !stableKeyword && !(version ==~ regex)
}
rejectVersionIf { selection -> // <---- notice how the closure argument is named
return isNonStable(selection.candidate.version) && !isNonStable(selection.currentVersion)
}
}
// https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html
dependencyCheck {
suppressionFile = 'config/owasp/suppressions.xml'
//CVE Scanning only relevant to production code that is published, not test or other implementations
scanConfigurations.addAll(['releaseCompileClasspath'])
analyzers {
// Disable scanning of .NET related binaries
assemblyEnabled = false
}
}
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.hibernate.orm' && details.requested.name == 'hibernate-core') {
details.useVersion '6.6.1.Final'
}
}
}
}
dependencyManagement {
dependencies {
dependency group: 'commons-io', name: 'commons-io', version: '2.19.0'
dependencySet( group: 'org.springframework.security', version: '6.4.4'){
entry 'spring-security-core'
entry 'spring-security-acl'
entry 'spring-security-aspects'
entry 'spring-security-cas'
entry 'spring-security-config'
entry 'spring-security-crypto'
entry 'spring-security-data'
entry 'spring-security-ldap'
entry 'spring-security-messaging'
entry 'spring-security-oauth2-client'
entry 'spring-security-oauth2-core'
entry 'spring-security-oauth2-jose'
entry 'spring-security-oauth2-resource-server'
entry 'spring-security-openid'
entry 'spring-security-remoting'
entry 'spring-security-rsocket'
entry 'spring-security-saml2-service-provider'
entry 'spring-security-taglibs'
entry 'spring-security-test'
entry 'spring-security-web'
}
dependencySet(group: 'org.seleniumhq.selenium', version: '4.2.2') {
entry 'selenium-java'
entry 'selenium-remote-driver'
entry 'selenium-firefox-driver'
entry 'selenium-chrome-driver'
entry 'selenium-safari-driver'
entry 'selenium-edge-driver'
entry 'selenium-api'
entry 'selenium-support'
}
dependencySet(group: 'ch.qos.logback', version: '1.5.32') {
entry 'logback-classic'
entry 'logback-core'
}
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "AzureArtifacts"
url = uri("https://pkgs.dev.azure.com/hmcts/Artifacts/_packaging/hmcts-lib/maven/v1")
}
}
def versions = [
junit : '5.14.3',
junitPlatform : '1.14.3',
reformLogging : '6.1.9',
springDoc : '2.2.0',
serenity : '3.9.8',
gradlePitest : '1.15.0',
pitest : '1.16.3',
sonarPitest : '0.5',
pactVersion : '4.6.17',
logbook : '3.9.0',
tomcat : '10.1.54',
testcontainers: '1.21.4',
mapStruct : '1.3.0.Final'
]
ext.libraries = [
junit5: [
"org.junit.jupiter:junit-jupiter-api:${versions.junit}",
"org.junit.jupiter:junit-jupiter-engine:${versions.junit}",
"org.junit.jupiter:junit-jupiter-params:${versions.junit}",
"org.junit.platform:junit-platform-commons:${versions.junitPlatform}",
"org.junit.platform:junit-platform-engine:${versions.junitPlatform}",
"org.junit.platform:junit-platform-launcher:${versions.junitPlatform}"
]
]
ext['snakeyaml.version'] = '2.0'
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${versions.testcontainers}"
}
}
dependencies {
implementation group: 'org.mapstruct', name: 'mapstruct-jdk8', version: versions.mapStruct
implementation group: 'org.mapstruct', name: 'mapstruct-processor', version: versions.mapStruct
annotationProcessor group: 'org.mapstruct', name: 'mapstruct-processor', version: versions.mapStruct
testImplementation group: 'org.mapstruct', name: 'mapstruct-jdk8', version: versions.mapStruct
testAnnotationProcessor group: 'org.mapstruct', name: 'mapstruct-processor', version: versions.mapStruct
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-json'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-cache'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.4.4'
implementation (group: 'org.springframework.boot', name: 'spring-boot-starter-oauth2-client', version: '2.7.18') {
exclude group: 'net.minidev', module: 'json-smart'
}
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-oauth2-resource-server'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-context', version: '4.2.1'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.2.1'
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.9'
implementation group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.5'
implementation group: 'org.springframework.security', name: 'spring-security-rsa', version: '1.1.5'
implementation('org.springframework.retry:spring-retry')
implementation group: 'org.zalando', name: 'logbook-core', version: versions.logbook
implementation group: 'org.zalando', name: 'logbook-spring-boot-starter', version: versions.logbook
implementation group: 'org.zalando', name: 'logbook-httpclient5', version: versions.logbook
implementation group: 'org.zalando', name: 'problem-spring-web-starter', version: '0.29.1'
implementation group: 'net.minidev', name: 'json-smart', version: '2.5.2'
implementation group: 'com.launchdarkly', name: 'launchdarkly-java-server-sdk', version: '7.13.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.6.0'
implementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
implementation group: 'com.github.hmcts.java-logging', name: 'logging', version: versions.reformLogging
implementation group: 'org.hibernate', name: 'hibernate-core', version: '6.6.42.Final'
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '8.0.3.Final'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.25.3'
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: '2.25.3'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.17'
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: versions.tomcat
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-websocket', version: versions.tomcat
implementation group: 'com.github.hmcts', name: 'service-auth-provider-java-client', version: '5.3.3'
implementation group: 'com.github.hmcts', name: 'core-case-data-store-client', version: '5.1.1'
implementation group: 'com.auth0', name: 'java-jwt', version: '4.5.0'
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-paranamer', version: '2.21.2'
implementation group: 'org.flywaydb', name: 'flyway-core', version: '8.5.13'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.7.9'
implementation group: 'io.hypersistence', name: 'hypersistence-utils-hibernate-63', version: '3.8.3'
implementation group: 'org.awaitility', name: 'awaitility', version: '4.2.2'
implementation 'com.microsoft.azure:applicationinsights-core:2.6.4'
//cache
implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '3.1.8'
testImplementation group: 'org.testcontainers', name: 'postgresql', version: versions.testcontainers
testImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: versions.testcontainers
testImplementation group: 'com.h2database', name: 'h2', version: '2.4.240'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.21.0'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '5.21.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: versions.junit
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: versions.junit
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: versions.junit
testImplementation group: 'org.junit.platform', name: 'junit-platform-commons', version: versions.junitPlatform
testImplementation group: 'org.junit.platform', name: 'junit-platform-engine', version: versions.junitPlatform
testImplementation group: 'org.junit.platform', name: 'junit-platform-launcher', version: versions.junitPlatform
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', {
exclude group: 'junit', module: 'junit'
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation(group: 'com.github.tomakehurst', name: 'wiremock-jre8', version: '3.0.1') {
exclude group: 'org.eclipse.jetty', module: 'jetty-server'
exclude group: 'org.eclipse.jetty', module: 'jetty-http'
exclude group: 'org.eclipse.jetty', module: 'jetty-util'
exclude group: 'org.eclipse.jetty', module: 'jetty-io'
exclude group: 'org.eclipse.jetty', module: 'jetty-security'
exclude group: 'org.eclipse.jetty.http2', module: 'http2-server'
}
testImplementation 'org.eclipse.jetty:jetty-server:11.0.26'
testImplementation 'org.eclipse.jetty:jetty-http:11.0.26'
testImplementation 'org.eclipse.jetty:jetty-util:11.0.26'
testImplementation 'org.eclipse.jetty:jetty-io:11.0.26'
testImplementation 'org.eclipse.jetty:jetty-security:11.0.26'
testImplementation 'org.eclipse.jetty.http2:http2-server:11.0.26'
testImplementation group: 'com.github.hmcts', name: 'document-management-client', version: '7.0.1'
testImplementation group: 'org.pitest', name: 'pitest', version: versions.pitest
testImplementation group: 'info.solidsoft.gradle.pitest', name: 'gradle-pitest-plugin', version: versions.gradlePitest
testImplementation group: 'org.codehaus.sonar-plugins', name: 'sonar-pitest-plugin', version: versions.sonarPitest
testImplementation group: 'net.serenity-bdd', name: 'serenity-core', version: versions.serenity
testImplementation group: 'net.serenity-bdd', name: 'serenity-junit', version: versions.serenity
testImplementation group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: versions.serenity
testImplementation group: 'net.serenity-bdd', name: 'serenity-spring', version: versions.serenity
testImplementation group: 'org.junit.vintage', name: 'junit-vintage-engine', version: versions.junit
testImplementation group: 'com.obsidiandynamics.pojotester', name: 'core', version: '0.9.0'
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.10', classifier: 'all'
testImplementation group: 'com.google.guava', name: 'guava-testlib', version: '32.1.3-jre'
// https://mvnrepository.com/artifact/com.vladsch.flexmark/flexmark
testCompileOnly group: 'com.vladsch.flexmark', name: 'flexmark-all', version: '0.64.8'
//Pact contract testing
contractTestImplementation group: 'au.com.dius.pact.consumer', name: 'junit5', version: versions.pactVersion
contractTestImplementation group: 'au.com.dius.pact.consumer', name: 'junit', version: versions.pactVersion
contractTestImplementation group: 'au.com.dius.pact.provider', name: 'junit5', version: versions.pactVersion
contractTestImplementation group: 'au.com.dius.pact.provider', name: 'spring', version: versions.pactVersion
contractTestImplementation group: 'au.com.dius.pact.provider', name: 'junit5spring', version: versions.pactVersion
contractTestRuntimeOnly(group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: versions.junit)
contractTestImplementation(group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: versions.junit)
testUtilsImplementation sourceSets.main.runtimeClasspath
testUtilsImplementation sourceSets.test.runtimeClasspath
integrationTestImplementation sourceSets.main.runtimeClasspath
integrationTestImplementation sourceSets.test.runtimeClasspath
functionalTestImplementation sourceSets.main.runtimeClasspath
functionalTestImplementation sourceSets.test.runtimeClasspath
smokeTestImplementation sourceSets.main.runtimeClasspath
smokeTestImplementation sourceSets.test.runtimeClasspath
contractTestImplementation sourceSets.main.runtimeClasspath
contractTestImplementation sourceSets.test.runtimeClasspath
}
task runAndPublishConsumerPactTests(type: Test) {
logger.lifecycle("Runs pact Tests")
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang=ALL-UNNAMED']
}
runAndPublishConsumerPactTests.finalizedBy pactPublish
pact {
broker {
pactBrokerUrl = System.getenv("PACT_BROKER_FULL_URL") ?: 'http://localhost:80'
}
publish {
pactBrokerUrl = System.getenv("PACT_BROKER_FULL_URL") ?: 'http://localhost:80'
pactDirectory = 'build/pacts'
tags = [System.getenv("PACT_BRANCH_NAME") ?: 'Dev']
version = project.pacticipantVersion
consumerVersion = project.pacticipantVersion
}
}
pactPublish {
pactPublish = project.pact.publish
}
task contract(type: Test) {
description = "Runs the consumer Pact tests"
group = 'Verification'
useJUnitPlatform()
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang=ALL-UNNAMED']
}
task runProviderPactVerification(type: Test) {
logger.lifecycle("Runs provider pact Tests")
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang=ALL-UNNAMED']
if (project.hasProperty('pact.verifier.publishResults')) {
systemProperty 'pact.verifier.publishResults', project.property('pact.verifier.publishResults')
}
systemProperty 'pact.provider.version', project.pacticipantVersion
}
task fortifyScan(type: JavaExec) {
mainClass = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
classpath += sourceSets.test.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}
runProviderPactVerification.dependsOn contract
runProviderPactVerification.finalizedBy pactVerify
static def getCheckedOutGitCommitHash() {
'git rev-parse --verify --short HEAD'.execute().text.trim()
}
application {
mainClass.set('uk.gov.hmcts.reform.wataskmanagementapi.Application')
}
bootJar {
getArchiveFileName().set(provider {
'wa-task-management-api.jar'
})
manifest {
attributes('Implementation-Version': project.version.toString())
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}