From 6323dc4e21b83c7f705542d12198626fe7d4fcaa Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 5 Oct 2017 13:39:49 +0100 Subject: [PATCH] Reduce logging that is produced when building Gradle plugin Travis is terminating builds as they are producing too much logging. A major contributor to the volume of logging is the Gradle plugin's build. This commit switches off debug logging for the build and enables test event logging. This considerably reduces the volume of logging that is produced while still providing some insight into the build's tests. --- .../spring-boot-gradle-plugin/build.gradle | 6 ++++++ .../spring-boot-tools/spring-boot-gradle-plugin/pom.xml | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle index 53488ff4fe..f8816c9123 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle @@ -23,6 +23,12 @@ jar { } } +test { + testLogging { + events "passed", "skipped", "failed" + } +} + eclipseJdt { inputFile = rootProject.file('../../eclipse/org.eclipse.jdt.core.prefs') doLast { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/pom.xml b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/pom.xml index 515c6bc582..959b7fc50f 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/pom.xml +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/pom.xml @@ -76,7 +76,6 @@ ${gradle.task} -Pversion=${project.version} -Pdescription=${project.description} - -d -S