gradle

Provides build support for Gradle projects using the Gradle CLI. Defaults outputs to Gradle’s build/classes/ directory and forwards Terrabuild action names to gradle.

Available Commands

CommandDescription
buildInvokes gradle assemble for the chosen configuration.
<command>Runs an arbitrary Gradle command (action name is forwarded to gradle).

Project Initializer

Declares default project outputs for Gradle builds.

project {
  @gradle { }
}

Equivalent to:

project {
    outputs = [ "build/classes/" ]
}
Last updated on