-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
148 lines (132 loc) · 4.31 KB
/
build.gradle
File metadata and controls
148 lines (132 loc) · 4.31 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
plugins {
id 'java'
id 'application'
id 'jacoco'
}
group = 'com.tsg.crossmsg'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://repository.apache.org/content/repositories/releases/"
}
}
dependencies {
// XML Processing
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.16.1'
implementation 'org.apache.xmlgraphics:batik-all:1.17'
implementation 'xerces:xercesImpl:2.12.2'
implementation 'xml-apis:xml-apis:1.4.01'
// XML Security
implementation 'org.apache.santuario:xmlsec:2.3.4'
//implementation 'org.apache.santuario:xmlsec-tools:2.3.4'
//implementation 'org.apache.santuario:xmlsec-impl:2.3.4'
//implementation 'org.apache.santuario:xmlsec-api:2.3.4'
//implementation 'org.apache.santuario:xmlsec-utils:2.3.4'
// JSON Processing
implementation 'com.nimbusds:nimbus-jose-jwt:9.37.3' // For JWS
// Cryptography
implementation 'org.bouncycastle:bcprov-jdk18on:1.77'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.77'
// Testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.11.0'
testImplementation 'org.mockito:mockito-core:5.11.0'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = true
showExceptions = true
showCauses = true
showStackTraces = true
exceptionFormat = 'full'
displayGranularity = 2
info {
events "passed", "skipped", "failed"
showStandardStreams = true
showExceptions = true
showCauses = true
showStackTraces = true
exceptionFormat = 'full'
displayGranularity = 2
}
debug {
events "passed", "skipped", "failed"
showStandardStreams = true
showExceptions = true
showCauses = true
showStackTraces = true
exceptionFormat = 'full'
displayGranularity = 2
}
}
filter {
includeTestsMatching "com.tsg.crossmsg.signing.*"
}
// Ensure tests provide verbose output
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', 'debug'
systemProperty 'org.slf4j.simpleLogger.showDateTime', 'true'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'true'
systemProperty 'org.slf4j.simpleLogger.showLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
}
wrapper {
gradleVersion = '8.6'
distributionType = Wrapper.DistributionType.BIN
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
// Ensure proper encoding
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs += ['-Xlint:unchecked', '-Xlint:deprecation']
}
// Add test coverage reporting
jacoco {
toolVersion = "0.8.11"
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
csv.required = false
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/model/**',
'**/config/**'
])
}))
}
}
// Ensure test coverage report is generated after tests
test.finalizedBy jacocoTestReport