@@ -13,7 +13,7 @@ plugins {
1313 id ' com.github.kt3k.coveralls' version ' 2.12.0'
1414}
1515
16- repositories {
16+ repositories {
1717 // https://stackoverflow.com/questions/36029754/force-gradle-to-use-http-instead-of-https
1818 // https://discuss.gradle.org/t/how-to-change-gradle-plugin-portal-from-https-to-http/10847/12
1919 mavenLocal()
@@ -66,7 +66,7 @@ eclipse.jdt.file.withProperties { props ->
6666// gradle support from JUnit5 team that we removed after gradle native support for JUnit5: http://junit.org/junit5/docs/current/user-guide/#running-tests-build-gradle
6767test {
6868 jvmArgs ' --enable-preview'
69-
69+
7070 // https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html
7171 // Enable JUnit 5 (Gradle 4.6+).
7272 useJUnitPlatform {
@@ -92,9 +92,9 @@ dependencies {
9292 // testCompile("org.junit.platform:junit-platform-runner:${junitPlatformVersion}")
9393 // Only needed to run tests in an (IntelliJ) IDE(A) that bundles an older version
9494 // testRuntimeOnly("org.junit.platform:junit-platform-launcher:${junitPlatformVersion}")
95-
95+
9696 // To avoid compiler warnings about @API annotations in JUnit code
97- testCompileOnly(' org.apiguardian:apiguardian-api:1.1.1 ' )
97+ testCompileOnly(' org.apiguardian:apiguardian-api:1.1.2 ' )
9898 implementation(' org.apiguardian:apiguardian-api:1.0.0' )
9999
100100 // To use Log4J's LogManager
@@ -152,13 +152,13 @@ afterEvaluate {
152152 def jacocoJupTestReportTask = project. tasks. getByName(' jacocoJupTestReport' )
153153 reportPath = " ${ buildDir} /reports/jacoco/report.xml"
154154 reportSourceSets = files(jacocoJupTestReportTask. sourceDirectories. collect{ it. listFiles() }. flatten())
155- }
155+ }
156156}
157157
158158// https://github.com/ben-manes/caffeine/blob/master/build.gradle
159159coveralls {
160160 jacocoReportPath = " ${ buildDir} /reports/jacoco/report.xml"
161- }
161+ }
162162
163163// https://github.com/codeclimate/test-reporter/issues/243
164164// task jacocoFixForCodeClimate(type: Copy) {
@@ -172,7 +172,7 @@ coveralls {
172172
173173// https://stackoverflow.com/questions/3963708/gradle-how-to-display-test-results-in-the-console-in-real-time
174174tasks. withType(Test ) {
175- testLogging {
175+ testLogging {
176176 // set options for log level LIFECYCLE
177177 events TestLogEvent . FAILED ,
178178 // TestLogEvent.PASSED,
@@ -198,14 +198,14 @@ tasks.withType(Test) {
198198 }
199199 info. events = debug. events
200200 info. exceptionFormat = debug. exceptionFormat
201-
201+
202202 afterSuite { desc , result ->
203- if (! desc. parent) { // will match the outermost suite
203+ if (! desc. parent) { // will match the outermost suite
204204 def output = " Results: ${ result.resultType} (${ result.testCount} tests, ${ result.successfulTestCount} successes, ${ result.failedTestCount} failures, ${ result.skippedTestCount} skipped)"
205205 def startItem = ' | ' , endItem = ' |'
206206 def repeatLength = startItem. length() + output. length() + endItem. length()
207207 println (' \n ' + (' -' * repeatLength) + ' \n ' + startItem + output + endItem + ' \n ' + (' -' * repeatLength))
208208 }
209209 }
210210 }
211- }
211+ }
0 commit comments