Interface GradleBuildInvocationSpec
A specification for launching a Gradle build with a specified Gradle version.
-
Method Summary
Modifier and TypeMethodDescriptionThe command line arguments (excluding tasks) to invoke the build with.The Gradle version to run the build with.The “root” directory of the build.getTasks()The tasks to execute.voidsetArguments(Iterable<String> arguments) Sets the command line arguments (excluding tasks) to invoke the build with.voidsetGradleVersion(String gradleVersion) Sets the Gradle version to run the build with.voidsetProjectDir(Object projectDir) Sets the “root” directory of the build.voidSets the tasks to execute.
-
Method Details
-
getProjectDir
-
setProjectDir
Sets the “root” directory of the build. This should not be the project directory of child project in a multi project build. It should always be the root of the multiproject build. The value is interpreted as a file as perProject.file(Object).- Parameters:
projectDir- The “root” directory of the build.
-
getGradleVersion
-
setGradleVersion
Sets the Gradle version to run the build with. The value must be a valid, published, Gradle version number. Examples are:"1.1""1.0-rc-1"
- Parameters:
gradleVersion- The Gradle version to run the build with.
-
getTasks
-
setTasks
-
getArguments
-
setArguments
-