GradleBootstrapAlias.

BootstrapGradle(ICakeContext, string) Method

Summary

Bootstrap a specific version of gradle.

The version must be a complete match and exist in the gradle list of versions. I.e. The json at https://services.gradle.org/versions/all must contain an element whose version matches exactly the given version.

Assembly
Cake.Gradle.dll
Namespace
Cake.Gradle
Containing Type
GradleBootstrapAlias

Syntax

public static void BootstrapGradle(this ICakeContext context, string version)

Examples

Task("Bootstrap-Gradle-7")
    .Does(() =>
{
    BootstrapGradle("7.0.2");
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
version string The version to get.

Return Value

Type Description
void