Browse Source

Enable stacktraces for the build server builds.

We have a few null pointer exceptions in lint too on our build
server, however without stacktrace they are impossible to diagnose.
This change enables these strack traces.

Test: ./gradlew clean with a purposefully added nullpointerexception
Change-Id: I18beafa6d92317833bddd937582e8a7fb03b6065
transition-compose-core
Aurimas Liutikas 7 years ago
parent
commit
cdbc7f3907
  1. 4
      init.gradle

4
init.gradle

@ -20,6 +20,7 @@ import com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask
import com.google.common.base.Charsets
import com.google.common.io.Files
import org.gradle.api.logging.configuration.ShowStacktrace
def supportRoot = ext.supportRootFolder
if (supportRoot == null) {
@ -103,6 +104,9 @@ def setupRepoOutAndBuildNumber() {
// the build server does not pass the build number so we infer it from the last folder of
// the dist path.
ext.buildNumber = project.ext.distDir.getName()
// the build server should always print out full stack traces for any failures.
gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS
} else {
buildDir = file("${ext.supportRootFolder}/../../out/host/gradle/frameworks/support/build")
project.ext.distDir = new File("${ext.supportRootFolder}/../../out/dist")

Loading…
Cancel
Save