@@ -134,7 +134,8 @@ subprojects {
134
134
apply plugin : ' me.champeau.gradle.jmh'
135
135
apply plugin : ' java'
136
136
apply plugin : ' org.junit.platform.gradle.plugin'
137
- apply plugin : ' checkstyle'
137
+ // apply plugin: 'checkstyle'
138
+ // apply plugin: 'findbugs'
138
139
139
140
sourceCompatibility = ' 1.8'
140
141
targetCompatibility = ' 1.8'
@@ -165,11 +166,27 @@ subprojects {
165
166
// See: http://blog.jessitron.com/2012/07/using-checkstyle-in-gradle.html
166
167
// https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
167
168
// http://checkstyle.sourceforge.net/reports/google-java-style.html
168
- checkstyle {
169
- configFile = new File (rootDir, " checkstyle.xml" )
169
+ /* checkstyle {
170
+ // configFile = new File(rootDir, "checkstyle.xml")
170
171
toolVersion = '6.7'
172
+ }*/
173
+
174
+ /* findbugsMain {
175
+ reports {
176
+ xml.enabled = false
177
+ html.enabled = true
178
+ }
179
+ ignoreFailures = true
171
180
}
172
181
182
+ findbugsJmh {
183
+ reports {
184
+ xml.enabled = false
185
+ html.enabled = true
186
+ }
187
+ ignoreFailures = true
188
+ }
189
+ */
173
190
sourceSets {
174
191
main {
175
192
java {
@@ -268,20 +285,20 @@ subprojects {
268
285
JUnit 5's junitPlatformTest runs as a "javaExec" rather than a "test",
269
286
so we can't hook into the before/after test behavior.
270
287
*/
271
- tasks. findByPath(" :$name :junitPlatformTest" ). configure{
272
- File testDir = new File (project. name + " /tests" )
273
- if ( testDir. exists() ) {
274
- File outFile = new File (testDir, ' report.txt' )
275
- doFirst{
276
- standardOutput = new TeeOutputStream (new FileOutputStream (outFile, true ), System . out)
277
- }
278
- doLast {
279
- if (outFile. size() == 0 )
280
- outFile. delete()
281
- else if (outFile. text. contains(" 0 tests found" ))
282
- outFile. delete()
288
+ tasks. findByPath(" :$name :junitPlatformTest" ). configure {
289
+ File testDir = new File (project. name + " /tests" )
290
+ if (testDir. exists()) {
291
+ File outFile = new File (testDir, ' report.txt' )
292
+ doFirst {
293
+ standardOutput = new TeeOutputStream (new FileOutputStream (outFile, true ), System . out)
294
+ }
295
+ doLast {
296
+ if (outFile. size() == 0 )
297
+ outFile. delete()
298
+ else if (outFile. text. contains(" 0 tests found" ))
299
+ outFile. delete()
300
+ }
283
301
}
284
- }
285
302
}
286
303
}
287
304
0 commit comments