1
1
plugins {
2
2
id ' java'
3
- id ' com.github.spotbugs' version ' 5.0.10 '
3
+ id ' com.github.spotbugs' version ' 5.0.13 '
4
4
id ' checkstyle'
5
5
id ' jacoco'
6
6
id ' com.github.hierynomus.license' version ' 0.16.1'
@@ -92,7 +92,7 @@ shadowJar {
92
92
minimize {
93
93
exclude(dependency(' org.apache.calcite::' ))
94
94
exclude(dependency(' org.slf4j.*::' ))
95
- exclude(dependency(' com.jcraft ::' ))
95
+ exclude(dependency(' com.github.mwiede ::' ))
96
96
}
97
97
}
98
98
@@ -145,24 +145,32 @@ spotbugsMain {
145
145
// Configure HTML report
146
146
reports {
147
147
xml {
148
- enabled = true
148
+ required . set( true )
149
149
destination = file(" $buildDir /reports/spotbugs/main.xml" )
150
150
}
151
+ html {
152
+ required. set(true )
153
+ destination = file(" $buildDir /reports/spotbugs/main.html" )
151
154
}
155
+ }
152
156
}
153
157
spotbugsTest {
154
158
// Configure HTML report
155
159
reports {
156
160
xml {
157
- enabled = true
161
+ required . set( true )
158
162
destination = file(" $buildDir /reports/spotbugs/test.xml" )
159
163
}
164
+ html {
165
+ required. set(true )
166
+ destination = file(" $buildDir /reports/spotbugs/test.html" )
160
167
}
168
+ }
161
169
}
162
170
163
171
task checkSpotBugsMainReport {
164
172
doLast {
165
- def xmlReport = spotbugsMain. reports. getByName(" XML " )
173
+ def xmlReport = spotbugsMain. reports. getByName(" xml " )
166
174
def slurped = new groovy.xml.XmlSlurper (). parse(xmlReport. destination)
167
175
def bugsFound = slurped.BugInstance . size()
168
176
slurped.BugInstance . each {
@@ -179,7 +187,7 @@ task checkSpotBugsMainReport {
179
187
180
188
task checkSpotBugsTestReport {
181
189
doLast {
182
- def xmlReport = spotbugsTest. reports. getByName(" XML " )
190
+ def xmlReport = spotbugsTest. reports. getByName(" xml " )
183
191
def slurped = new XmlSlurper (). parse(xmlReport. destination)
184
192
def bugsFound = slurped.BugInstance . size()
185
193
slurped.BugInstance . each {
@@ -312,13 +320,14 @@ dependencies {
312
320
implementation group : ' com.google.guava' , name : ' guava' , version : ' 31.1-jre'
313
321
implementation group : ' org.slf4j' , name : ' slf4j-log4j12' , version : ' 2.0.5'
314
322
implementation group : ' org.apache.commons' , name : ' commons-text' , version : ' 1.10.0'
323
+ implementation group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.12.0'
315
324
implementation group : ' org.apache.logging.log4j' , name : ' log4j-api' , version : ' 2.19.0'
316
325
implementation group : ' org.apache.logging.log4j' , name : ' log4j-core' , version : ' 2.19.0'
317
- implementation group : ' org.mongodb' , name : ' mongodb-driver-sync' , version : ' 4.7.2 '
318
- implementation group : ' com.jcraft ' , name : ' jsch' , version : ' 0.1.55 '
326
+ implementation group : ' org.mongodb' , name : ' mongodb-driver-sync' , version : ' 4.8.1 '
327
+ implementation group : ' com.github.mwiede ' , name : ' jsch' , version : ' 0.2.4 '
319
328
implementation group : ' org.apache.calcite' , name : ' calcite-core' , version : ' 1.32.0'
320
329
implementation group : ' commons-beanutils' , name : ' commons-beanutils' , version : ' 1.9.4'
321
- implementation ' io.github.hakky54:sslcontext-kickstart:7.4.7 '
330
+ implementation ' io.github.hakky54:sslcontext-kickstart:7.4.8 '
322
331
323
332
compileOnly group : ' org.immutables' , name : ' value' , version : ' 2.9.2'
324
333
compileOnly group : ' com.puppycrawl.tools' , name : ' checkstyle' , version : ' 10.5.0'
@@ -331,7 +340,7 @@ dependencies {
331
340
testAnnotationProcessor group : ' org.projectlombok' , name : ' lombok' , version : ' 1.18.24'
332
341
testImplementation group : ' org.junit.jupiter' , name : ' junit-jupiter-api' , version : ' 5.9.1'
333
342
testImplementation group : ' org.junit.jupiter' , name : ' junit-jupiter-params' , version : ' 5.9.1'
334
- testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 4.8 .0'
343
+ testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 4.9 .0'
335
344
testRuntimeOnly group : ' de.flapdoodle.embed' , name : ' de.flapdoodle.embed.mongo' , version : ' 3.5.3'
336
345
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-api:5.9.1'
337
346
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
@@ -342,7 +351,7 @@ dependencies {
342
351
testFixturesCompileOnly group : ' de.flapdoodle.embed' , name : ' de.flapdoodle.embed.mongo' , version : ' 3.5.3'
343
352
testFixturesCompileOnly ' org.junit.jupiter:junit-jupiter-api:5.9.1'
344
353
testFixturesImplementation group : ' com.google.guava' , name : ' guava' , version : ' 29.0-jre'
345
- testFixturesImplementation group : ' org.mongodb' , name : ' mongodb-driver-sync' , version : ' 4.7.2 '
354
+ testFixturesImplementation group : ' org.mongodb' , name : ' mongodb-driver-sync' , version : ' 4.8.1 '
346
355
testFixturesImplementation group : ' org.apache.logging.log4j' , name : ' log4j-api' , version : ' 2.17.2'
347
356
testFixturesImplementation group : ' org.apache.logging.log4j' , name : ' log4j-core' , version : ' 2.17.2'
348
357
}
0 commit comments