I am writing a gradle custom plugin and the requirement is to fail build conditionally based on a parameter.
To fail the build i am throwing GradleException. If the property is not set, i want to log the reason and stop executing the plugin. Is there anyway other than System.exit?