Stop a Gradle Build with an Error: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Gradle Programming =Overview= To stop Gradle in the configuration ph...") |
No edit summary |
||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
To stop Gradle in the [[Gradle_Concepts#Configuration|configuration]] phase with an error, usually caused by user input, or missing configuration: | To stop Gradle in the [[Gradle_Concepts#Configuration|configuration]] phase with an error, usually caused by user input, or missing configuration, throw the relevant exception from [https://docs.gradle.org/current/javadoc/org/gradle/api/package-summary.html org.gradle.api] package: | ||
* [http://gradle.org/docs/current/javadoc/org/gradle/api/InvalidUserDataException.html InvalidUserDataException] | |||
* [http://gradle.org/docs/current/javadoc/org/gradle/api/GradleScriptException.html GradleScriptException] |
Revision as of 21:34, 14 March 2019
Internal
Overview
To stop Gradle in the configuration phase with an error, usually caused by user input, or missing configuration, throw the relevant exception from org.gradle.api package: