Stop a Gradle Build with an Error

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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:

Example

Organizatorium