diff --git a/gradle/build.gradle b/gradle/build.gradle index 1a39540b9..742374d65 100644 --- a/gradle/build.gradle +++ b/gradle/build.gradle @@ -20,6 +20,13 @@ plugins { id 'com.bmuschko.docker-java-application' version '4.0.4' apply false } +// Provide defaults for all of the project properties. + +// showAllOutput: boolean. If true, dump all test output during the build. +if (!project.hasProperty('showAllOutput')) { + ext.showAllOutput = 'false' +} + // Only do linting if the build is successful. gradleLint.autoLintAfterFailure = false @@ -245,6 +252,10 @@ subprojects { } } + test { + testLogging.showStandardStreams = Boolean.parseBoolean(showAllOutput) + } + if (project.name == 'core') return ext.relativePath = "google/registry/${project.name}"