We are using Gradle 2.6 to do native compilation. A couple of tasks are hooked in before the native compilation task. These tasks are Exec tasks which perform some pre-processing on source files, in a couple of cases they return non-zero exit values. We have set ignoreExitValue to true on the Exec tasks. This allows the build to continue and Gradle prints Build Success at the end.
However, while Gradle prints success, it exits with -1, instead of 0. This results in our processes that kick off Gradle reporting failure.
Is there a way to ignoreExitValues in an Exec task and have Gradle exit with success indicated?
Removing these tasks Gradle reports success with a zero exit value.
Any help appreciated.