-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
123 lines (96 loc) · 3.34 KB
/
Copy pathbuild.gradle
File metadata and controls
123 lines (96 loc) · 3.34 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
plugins {
id 'java'
id 'jacoco'
id 'io.gatling.gradle' version '3.11.5.2'
id "org.sonarqube" version "6.3.1.5724"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
group = 'org.example'
version = '1.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// Test dependencies
testImplementation 'org.mockito:mockito-core:5.4.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.4.0'
// testImplementation 'org.mockito:mockito-inline:5.4.0'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
testImplementation 'org.assertj:assertj-core:3.22.0'
// Gatling dependencies
gatling 'io.gatling.highcharts:gatling-charts-highcharts:3.11.5'
gatling 'io.gatling:gatling-app:3.11.5'
implementation 'net.bytebuddy:byte-buddy:1.14.5'
implementation("cglib:cglib:3.3.0")
implementation 'org.mindrot:jbcrypt:0.4'
implementation 'redis.clients:jedis:5.0.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'
implementation 'org.aspectj:aspectjweaver:1.9.21'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.2'
implementation 'org.reflections:reflections:0.10.2'
implementation 'org.javassist:javassist:3.28.0-GA'
implementation 'org.ow2.asm:asm:9.7'
implementation 'org.ow2.asm:asm-tree:9.7'
testImplementation 'org.slf4j:slf4j-simple:1.7.32'
implementation 'ch.qos.logback:logback-classic:1.2.6'
implementation 'org.yaml:snakeyaml:1.29'
implementation("org.objenesis:objenesis:3.3")
implementation 'com.zaxxer:HikariCP:5.1.0'
runtimeOnly 'mysql:mysql-connector-java:8.0.33'
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ['-parameters']
}
test {
useJUnitPlatform()
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED'
'--add-opens=java.base/java.security=ALL-UNNAMED'
'--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED'
'--add-opens=java.base/java.lang.invoke=ALL-UNNAMED'
testLogging {
events 'passed', 'skipped', 'failed' // Show test execution details
showStandardStreams = true // Show test output
}
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = '0.8.12'
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
html.required = true
html.outputLocation = layout.buildDirectory.dir('reports/jacoco/html')
xml.outputLocation = layout.buildDirectory.file('reports/jacoco/jacoco.xml')
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/*Exception.class',
'**/exception/**',
'**/app/**',
'**/data/**',
])
}))
}
}
gatling {
}
jar {
manifest {
attributes(
'Main-Class': 'Main'
)
}
}