citadel.nodes.gradle module

class citadel.nodes.gradle.Gradle(yml, path)[source]
Synopsis:Run gradle for builds.
Requirements:None
Platform:Any
Parameters:lifecycle (optional) – The lifecycle stages to be run (default: clean assemble).

Usage

1
2
3
4
build:
  gradle:
    lifecycle: clean assemble
    httpProxy: 127.0.0.1

Apart from the lifecycle, all the unrecognized options will be translated into -Doption=value.

As such, the above statement would become.
1
gradle clean assemble -DhttpProxy=127.0.0.1

If ‘gradle’ isn’t found in the PATH (tested using a which command), then the gradle wrapper will be used (a gradlew executable file must exist at the root of the project).