-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (86 loc) · 2.67 KB
/
build.gradle
File metadata and controls
101 lines (86 loc) · 2.67 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
plugins {
id 'scala'
id "org.owasp.dependencycheck" version "12.2.0"
id 'io.gatling.gradle' version '3.15.0'
id 'io.spring.dependency-management' version '1.1.7'
}
group 'uk.gov.hmcts.reform'
version = '1.0'
dependencyCheck {
suppressionFile = "config/owasp/suppressions.xml"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2025.1.1"
}
dependencies {
//CVE-2025-67735
dependencySet(group: 'io.netty', version: '4.2.10.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-classes-io_uring'
entry 'netty-transport-native-epoll'
entry 'netty-transport-native-kqueue'
entry 'netty-transport-native-io_uring'
entry 'netty-transport-native-unix-common'
entry 'netty-codec-mqtt'
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType(JavaExec).configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
jvmArgs = ['-Xms1024m', '-Xmx2048m']
}
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('io.gatling.highcharts:gatling-charts-highcharts:3.15.0') {
exclude group: 'io.pebbletemplates', module: 'pebble'
}
}
sourceSets {
gatling {
scala {
srcDir 'src/gatling/simulations'
}
resources {
srcDir 'src/gatling/resources'
}
}
}