GradleBootstrapAlias Class

Summary

Provides a way to bootstrap a local gradle installation.
Assembly
Cake.Gradle.dll
Namespace
Cake.Gradle
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["GradleBootstrapAlias"] class Type type-node

Syntax

public static class GradleBootstrapAlias

Examples

get the current gradle version.

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

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
BootstrapCurrentGradle(ICakeContext) void
Bootstrap the current gradle version into the tools folder.

Be aware that this is always the current version, as found in https://services.gradle.org/versions/current So the versions of gradle might change between usages.

static
BootstrapGradle(ICakeContext, string) void
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.

static
BootstrapNightlyGradle(ICakeContext) void
Bootstrap the nightly gradle version into the tools folder.

Be aware that this is always the nightly version, as found in https://services.gradle.org/versions/nightly So the versions of gradle might change between usages. Also, as this is the nightly version, it is entirely possible that this version might not be completely stable.

static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin