-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
569 lines (479 loc) · 19.9 KB
/
build.gradle
File metadata and controls
569 lines (479 loc) · 19.9 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
import org.flywaydb.gradle.task.FlywayMigrateTask
import uk.gov.hmcts.rse.AuthMode
import uk.gov.hmcts.rse.CftlibExec
buildscript {
ext {
flywayVersion = '11.20.3'
serenityBddVersion = '5.2.2'
}
dependencies {
classpath("org.flywaydb:flyway-database-postgresql:$flywayVersion")
}
}
plugins {
id 'application'
id 'jacoco'
id 'io.spring.dependency-management' version '1.1.7'
id 'org.springframework.boot' version '3.5.13'
id 'com.github.ben-manes.versions' version '0.53.0'
id 'org.flywaydb.flyway' version "$flywayVersion"
id 'org.sonarqube' version '7.2.3.7755'
id 'net.serenity-bdd.serenity-gradle-plugin' version "$serenityBddVersion"
id 'hmcts.ccd.sdk' version '6.7.2'
id 'com.github.hmcts.rse-cft-lib' version '0.19.2061'
id 'io.freefair.lombok' version '9.2.0'
id 'au.com.dius.pact' version '4.6.20'
/*
Applies analysis tools including checkstyle and OWASP Dependency checker.
See https://github.com/hmcts/gradle-java-plugin
*/
id 'uk.gov.hmcts.java' version '0.12.68'
}
group = 'uk.gov.hmcts.reform'
version = '0.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
sourceSets {
functionalTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/functionalTest/java')
}
resources.srcDir file('src/functionalTest/resources')
}
integrationTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/integrationTest/java')
}
resources.srcDir file('src/integrationTest/resources')
}
contractTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir file('src/contractTest/java')
}
resources.srcDir file('src/contractTest/resources')
}
}
configurations {
functionalTestImplementation.extendsFrom testImplementation
functionalTestRuntimeOnly.extendsFrom runtimeOnly
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntimeOnly.extendsFrom runtimeOnly
smokeTestImplementation.extendsFrom testImplementation
smokeTestRuntimeOnly.extendsFrom runtimeOnly
cftlibTestImplementation.extendsFrom testImplementation
cftlibTestRuntime.extendsFrom testRuntime
mockitoAgentConfig
mockitoAgent {
transitive = false
}
integrationTestRuntimeClasspath {
exclude group: 'com.github.hmcts', module: 'cftlib-dev-only'
}
}
def runtimeIndexingEnabled = System.getenv('CCD_ENABLED') != 'false'
ccd {
configDir = file('build/definitions')
decentralised = true
runtimeIndexing = runtimeIndexingEnabled
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Werror"
}
// https://github.com/gradle/gradle/issues/16791
tasks.withType(JavaExec).configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
maxParallelForks = 1
testLogging {
exceptionFormat = 'full'
}
}
test {
failFast = true
useJUnitPlatform {
excludeTags 'enforcement-domain-entity-alignment'
}
}
tasks.register('architectureValidation', Test) {
description = "Runs architecture validation tests (domain-entity alignment checks)"
group = "verification"
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
useJUnitPlatform {
includeTags 'architecture'
}
ignoreFailures = true
testLogging {
events "PASSED", "SKIPPED", "FAILED"
exceptionFormat = 'full'
}
}
tasks.register('enforcementValidation', Test) {
description = "Runs enforcement domain-entity alignment validation"
group = "verification"
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
useJUnitPlatform {
includeTags 'enforcement-domain-entity-alignment'
}
ignoreFailures = true
testLogging {
events "PASSED", "SKIPPED", "FAILED"
exceptionFormat = 'full'
showStandardStreams = true // Shows the console output with missing fields
}
}
tasks.register('functional', Test) {
description = "Runs functional tests"
group = "verification"
dependsOn assemble, testClasses
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = configurations.functionalTestRuntimeClasspath + sourceSets.functionalTest.output
useJUnitPlatform {
includeTags System.getProperty("tags", "Functional")
}
doFirst {
delete "${rootDir}/target/site/serenity"
delete "${rootDir}/report-for-functional-tests"
logger.quiet("Functional test results directory cleaned before running functional tests")
}
finalizedBy {
aggregate {
doLast {
new File("${rootDir}/report-for-functional-tests").mkdirs()
file("${rootDir}/target/site/serenity").renameTo(file("${rootDir}/report-for-functional-tests"))
logger.quiet("Functional test report moved to ---> file://${rootDir}/report-for-functional-tests/index.html")
}
}
}
testLogging {
events "PASSED", "SKIPPED", "FAILED"
}
}
functional.finalizedBy(aggregate)
serenity {
reports = ["single-page-html"]
}
tasks.register('integration', Test) {
description = "Runs integration tests"
group = "Verification"
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
failFast = true
}
tasks.register('smoke', Test) {
description = "Runs Smoke Tests"
group = "verification"
dependsOn assemble, testClasses
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = configurations.functionalTestRuntimeClasspath + sourceSets.functionalTest.output
useJUnitPlatform {
includeTags System.getProperty("tags", "Smoke")
}
doFirst {
delete "${rootDir}/target/site/serenity"
delete "${rootDir}/report-for-smoke-tests"
logger.quiet("Smoke test results directory cleaned before running smoke tests")
}
finalizedBy {
aggregate {
doLast {
new File("${rootDir}/report-for-smoke-tests").mkdirs()
file("${rootDir}/target/site/serenity").renameTo(file("${rootDir}/report-for-smoke-tests"))
logger.quiet("Smoke test report moved to ---> file://${rootDir}/report-for-smoke-tests/index.html")
}
}
}
testLogging {
events "PASSED", "SKIPPED", "FAILED"
}
}
smoke.finalizedBy(aggregate)
tasks.register('yarnInstall', Exec) {
workingDir = file("${project.projectDir}/src/e2eTest")
commandLine 'yarn', 'install'
}
tasks.register('runE2eTests', Exec) {
dependsOn yarnInstall
workingDir = file("${project.projectDir}/src/e2eTest")
def suite = System.getenv('E2E_SUITE') ?: 'pr'
commandLine 'yarn', "test:${suite}"
}
tasks.register('contract', Test) {
description = 'Runs the consumer Pact tests'
useJUnitPlatform()
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
systemProperty 'pact.rootDir', "pacts"
}
tasks.register('runAndPublishConsumerPactTests', Test) {
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
}
tasks.register('fortifyScan', JavaExec) {
mainClass = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
classpath += sourceSets.test.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}
project.ext {
pactVersion = getCheckedOutGitCommitHash()
pacticipantVersion = getCheckedOutGitCommitHash()
pacticipant = 'pcs_api'
}
pact {
broker {
pactBrokerUrl = System.getenv("PACT_BROKER_URL") ?: 'http://localhost:80'
}
publish {
pactDirectory = 'pacts'
tags = [System.getenv("PACT_BRANCH_NAME") ?: 'Dev']
version = project.pactVersion
}
}
runAndPublishConsumerPactTests.dependsOn contract
runAndPublishConsumerPactTests.finalizedBy pactPublish
static def getCheckedOutGitCommitHash() {
'git rev-parse --verify --short HEAD'.execute().text.trim()
}
jacocoTestReport {
executionData(test, integration, cftlibTest)
reports {
xml.required = true
csv.required = false
html.required = true
}
}
tasks.named('sonarqube') {
dependsOn jacocoTestReport
}
tasks.named('check') {
dependsOn integration
}
sonarqube {
properties {
property "sonar.projectName", "Reform :: pcs-api"
property "sonar.projectKey", "uk.gov.hmcts.reform:pcs-api"
property "sonar.exclusions", ".github/workflows/publish-openapi.yaml"
property "sonar.coverage.exclusions", "**/config/**/*Configuration.java," +
"**/*Constants.java," +
"**/model/*.java," +
"**/uk/gov/hmcts/reform/pcs/Application.java," +
"**/uk/gov/hmcts/reform/pcs/config/*.java," +
"**/uk/gov/hmcts/reform/pcs/ccd/accesscontrol/**/*.java," +
"**/uk/gov/hmcts/reform/pcs/ccd/config/HighLevelDataSetupApp.java," +
"**/uk/gov/hmcts/reform/pcs/ccd/domain/**/*.java," +
"**/uk/gov/hmcts/reform/pcs/ccd/page/**/*.java," +
"**/uk/gov/hmcts/reform/pcs/ccd/entity/**/*.java," +
"**/entities/**," + "**/model/**," + "**/uk/gov/hmcts/reform/pcs/testingsupport/**/*.java"
property "sonar.cpd.exclusions", "**/uk/gov/hmcts/reform/pcs/ccd/domain/enforcetheorder/warrant/StatementOfTruthDetails.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'
}
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://pkgs.dev.azure.com/hmcts/Artifacts/_packaging/hmcts-lib/maven/v1'}
}
ext {
log4JVersion = "2.25.3"
logbackVersion = "1.5.32"
testcontainersVersion = "2.0.4"
testcontainersAdditionsVersion = "1.21.4"
springFrameworkBootVersion = "3.5.13"
lombokVersion = "1.18.44"
springSecurityVersion = "7.0.4"
pactVersion = "4.6.20"
tomcatEmbedVersion = "11.0.18"
nettyVersion = "4.1.132.Final"
}
ext['snakeyaml.version'] = '2.0'
ext['netty.version'] = nettyVersion
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-json', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: springFrameworkBootVersion
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: springFrameworkBootVersion
runtimeOnly group: 'org.flywaydb', name: 'flyway-database-postgresql', version: flywayVersion
implementation group: 'org.flywaydb', name: 'flyway-core', version: flywayVersion
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.16'
implementation group: 'uk.gov.service.notify', name: 'notifications-java-client', version: '6.0.0-RELEASE'
implementation platform(group: 'com.azure.spring', name :'spring-cloud-azure-dependencies', version :'6.1.0')
implementation "com.azure.spring:spring-cloud-azure-starter-servicebus-jms"
implementation group: 'org.modelmapper', name: 'modelmapper', version: '3.2.6'
implementation group: 'com.github.hmcts.java-logging', name: 'logging', version: '8.0.0'
implementation group: 'com.github.hmcts', name: 'core-case-data-store-client', version: '5.2.0'
implementation group: 'com.github.hmcts', name: 'idam-java-client', version: '3.0.5'
implementation group: 'com.github.hmcts', name: 'doc-assembly-client', version: '2.2.0'
implementation(group: 'com.github.hmcts', name: 'fees-java-client', version: '0.1.0') {
exclude group: 'uk.gov.hmcts.reform', module: 'java-logging'
}
implementation (group: 'com.github.hmcts', name: 'payments-java-client', version: '1.7.0') {
exclude group: 'uk.gov.hmcts.reform', module: 'service-auth-provider-client'
exclude group: 'uk.gov.hmcts.reform', module: 'java-logging'
}
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4JVersion
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4JVersion
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: log4JVersion
implementation group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
implementation group: 'ch.qos.logback', name: 'logback-core', version: logbackVersion
implementation group: 'org.postgresql', name: 'postgresql', version: '42.7.10'
implementation group: 'com.github.hmcts', name: 'service-auth-provider-java-client', version: '5.3.3'
implementation group: 'io.pebbletemplates', name: 'pebble', version: '4.1.1'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.3.1'
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.6.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.20.0'
implementation group: 'org.projectlombok', name: 'lombok', version: lombokVersion
implementation group: 'com.github.kagkarlsson', name: 'db-scheduler-spring-boot-starter', version: '16.7.1'
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: tomcatEmbedVersion
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-websocket', version: tomcatEmbedVersion
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
testImplementation group: 'io.rest-assured', name: 'rest-assured', version: '5.5.7'
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.10', classifier: 'all'
testImplementation group: 'org.instancio', name: 'instancio', version: '1.0.4'
implementation(group: 'com.github.hmcts', name: 'befta-fw', version: '9.2.4') {
exclude group: 'org.apache.commons', module: 'commons-compress'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.apache.poi', module: 'poi-ooxml'
exclude group: 'org.apache.poi', module: 'poi'
exclude group: 'com.launchdarkly', module: 'launchdarkly-java-server-sdk'
}
functionalTestImplementation group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: serenityBddVersion
functionalTestImplementation group: 'net.serenity-bdd', name: 'serenity-core', version: serenityBddVersion
functionalTestImplementation group: 'net.serenity-bdd', name: 'serenity-junit5', version: serenityBddVersion
functionalTestImplementation sourceSets.main.runtimeClasspath
functionalTestImplementation sourceSets.test.runtimeClasspath
testImplementation group: 'org.junit.platform', name: 'junit-platform-suite-api', version: '6.0.3'
contractTestImplementation group: 'au.com.dius.pact.consumer', name: 'junit5', version: pactVersion
contractTestImplementation group: 'org.hamcrest', name: 'java-hamcrest', version: '2.0.0.0'
contractTestImplementation('org.junit.jupiter:junit-jupiter-api:6.0.3')
contractTestImplementation sourceSets.main.runtimeClasspath
contractTestImplementation sourceSets.test.runtimeClasspath
testImplementation(platform('org.junit:junit-bom:6.0.3'))
testImplementation group: 'org.springframework.security', name: 'spring-security-test', version: springSecurityVersion
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springFrameworkBootVersion) {
exclude group: 'junit', module: 'junit'
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.boot:spring-boot-starter-webflux'
testImplementation group: 'org.testcontainers', name: 'testcontainers', version: testcontainersVersion
testImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: testcontainersAdditionsVersion
testImplementation group: 'org.testcontainers', name: 'postgresql', version: testcontainersAdditionsVersion
integrationTestImplementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-contract-stub-runner', version: '4.3.1'
// Allow fast reloading during dev; recompile a class to trigger fast reload + definition reimport.
cftlibImplementation 'org.springframework.boot:spring-boot-devtools'
mockitoAgentConfig group: 'org.mockito', name: 'mockito-inline', version: '5.2.0'
mockitoAgent 'org.mockito:mockito-core'
}
application {
mainClass = 'uk.gov.hmcts.reform.pcs.Application'
}
bootJar {
archiveFileName = "pcs-api.jar"
manifest {
attributes('Implementation-Version': project.version.toString())
}
}
flyway {
url = System.getenv('FLYWAY_URL')
user = System.getenv('FLYWAY_USER')
password = System.getenv('FLYWAY_PASSWORD')
baselineOnMigrate = true
baselineVersion = '000'
}
tasks.register('migratePostgresDatabase', FlywayMigrateTask) {
baselineOnMigrate = true
if (project.hasProperty("dburl")) {
url = "jdbc:postgresql://${dburl}"
}
}
project.tasks.named("generateCCDConfig") {
environment 'SPRING_PROFILES_ACTIVE', 'config-gen'
environment 'SPRING_FLYWAY_ENABLED', 'false'
environment 'PCS_DB_USER_NAME', 'postgres'
environment 'PCS_DB_PASSWORD', 'postgres'
environment 'DB_PORT', '6432'
}
// Gradle 7.x issue, workaround from: https://github.com/gradle/gradle/issues/17236#issuecomment-894768083
tasks.named('test') {
doFirst {
jvmArgs += "-javaagent:${configurations.mockitoAgent.asPath}"
}
}
tasks.named('integration') {
doFirst {
jvmArgs += "-javaagent:${configurations.mockitoAgent.asPath}"
}
}
tasks.withType(CftlibExec).configureEach {
group = 'ccd tasks'
authMode = AuthMode.Local
//Attach mockito agent for inline mocking to remove warning in logs
classpath += configurations.mockitoAgentConfig
doFirst {
def mockitoAgentJar = configurations.mockitoAgent.singleFile
jvmArgs += ["-javaagent:${mockitoAgentJar}", "-Xshare:off"]
logger.quiet("Attaching Mockito Java agent for inline mocking")
}
environment 'RSE_LIB_ADDITIONAL_DATABASES', 'pcs'
environment 'PCS_DB_USER_NAME', 'postgres'
environment 'PCS_DB_PASSWORD', 'postgres'
environment 'PCS_DB_PORT', '6432'
environment 'CCD_DECENTRALISED_CASE-TYPE-SERVICE-URLS_PCS', 'http://localhost:3206'
environment 'SPRING_FLYWAY_ENABLED', 'true'
environment 'SPRING_PROFILES_ACTIVE', 'dev'
environment 'XUI_JURISDICTIONS', 'PCS'
environment 'XUI_DOCUMENTS_API_V2', 'http://ccd-case-document-am-api-aat.service.core-compute-aat.internal'
environment 'DATA_STORE_S2S_AUTHORISED_SERVICES', 'ccd_data,ccd_gw,pcs_frontend,pcs_api'
environment 'CCD_S2S-AUTHORISED_SERVICES_CASE_USER_ROLES', 'aac_manage_case_assignment,pcs_api'
}
tasks.register('highLevelDataSetup', JavaExec) {
mainClass.set("uk.gov.hmcts.reform.pcs.ccd.config.HighLevelDataSetupApp")
classpath += sourceSets.main.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}
tasks.register('e2eTest') {
dependsOn('runE2eTests')
}
// Ensure we cover Cftlib dev & test with our CI checks
check.dependsOn cftlibTest
tasks.named("processIntegrationTestResources") {
duplicatesStrategy = 'include'
}
tasks.named("processContractTestResources") {
duplicatesStrategy = 'include'
}
tasks.named("processFunctionalTestResources") {
duplicatesStrategy = 'include'
}
tasks.withType(Wrapper) {
distributionType = Wrapper.DistributionType.ALL
}