-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
116 lines (100 loc) · 3.18 KB
/
build.gradle
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
plugins {
id 'scala'
id 'io.gatling.gradle' version '3.13.1.2'
id "org.owasp.dependencycheck" version "11.1.1"
id 'io.spring.dependency-management' version '1.1.7'
}
apply plugin: 'scala'
apply plugin: 'io.gatling.gradle'
apply plugin: "org.owasp.dependencycheck"
group 'uk.gov.hmcts.reform'
version = '1.0'
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2024.0.0"
}
dependencies {
// CVE-2022-24823
dependencySet(group: 'io.netty', version: '4.1.116.Final') {
entry 'netty-buffer'
entry 'netty-codec'
entry 'netty-codec-dns'
entry 'netty-codec-http'
entry 'netty-codec-http2'
entry 'netty-codec-socks'
entry 'netty-common'
entry 'netty-handler'
entry 'netty-handler-proxy'
entry 'netty-resolver'
entry 'netty-resolver-dns'
entry 'netty-resolver-dns-classes-macos'
entry 'netty-resolver-dns-native-macos'
entry 'netty-transport'
entry 'netty-transport-classes-epoll'
entry 'netty-transport-classes-kqueue'
entry 'netty-transport-native-epoll'
entry 'netty-transport-native-kqueue'
entry 'netty-transport-native-unix-common'
entry 'netty-codec-mqtt'
}
dependencySet(group: 'org.scala-lang', version: '2.13.15') {
entry 'scala-library'
entry 'scala-compiler'
entry 'scala-reflect'
}
dependencySet(group: 'ch.qos.logback', version: '1.5.13') {
entry 'logback-core'
entry 'logback-classic'
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType(JavaExec).configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}
tasks.withType(JavaExec) {
// Configure the size of the JVM if necessary
jvmArgs = ['-Xms1024m', '-Xmx2048m']
/* Use the following args to build a report when a test was terminated
args = [
"--reports-only", "fact-20201109092032896",
'--results-folder', file('build/reports/gatling').absolutePath,
]
*/
}
tasks.withType(Copy).all{
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
repositories {
mavenCentral()
}
gatlingRun {
simulationClassName = 'uk.gov.hmcts.pcq.simulations.PCQSimulation'
}
dependencyCheck {
// Specifies if the build should be failed if a CVSS score above a specified level is identified.
// range of 0-10 fails the build, anything greater and it doesn't fail the build
failBuildOnCVSS = System.getProperty('dependencyCheck.failBuild') == 'true' ? 0 : 11
suppressionFile = 'config/owasp/suppressions.xml'
analyzers {
// Disable scanning of .NET related binaries
assemblyEnabled = false
}
}
dependencies {
implementation group: 'io.gatling.highcharts', name: 'gatling-charts-highcharts', version: '3.13.1'
}
sourceSets {
gatling {
scala {
srcDir 'src/gatling/simulations'
}
resources {
srcDir 'src/gatling/resources'
}
}
}