Cake.Gradle 3.0.0

.NET 6.0
dotnet add package Cake.Gradle --version 3.0.0
NuGet\Install-Package Cake.Gradle -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Gradle" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Gradle --version 3.0.0
#r "nuget: Cake.Gradle, 3.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Cake.Gradle&version=3.0.0


standard-readme compliant Build Codecov Report NuGet package All Contributors

Aliases to assist with running Gradle builds from Cake build scripts.

Table of Contents


#addin nuget:?package=Cake.Gradle

Additionally, either gradle has to be installed on the system or the project needs a gradle-wrapper (gradlew)


 #addin nuget:?package=Cake.Gradle

// Run 'gradle --version'
    .Does(() =>

// Run 'gradle hello' in a specific folder
// Note: if you have a gradle wrapper setup in the specified path, this one will be used
    .Does(() =>

// Run 'gradle hello' in a specific folder with default log level
// Note: if no log level is set, it is derived from the Cake verbosity (which is set to 'verbose' in build.ps1)
    .Does(() =>

// Run 'gradle --offline --build-file build.gradle hello' in a specific folder
    .Does(() =>
    Gradle.FromPath("./example").WithTask("hello").WithArguments("--offline --build-file build.gradle").Run();


Cake 0.33.0 and later.


Allow Cake users to orchestrate a complex build including a Gradle-based Java build. Works similar to the cake-gulp addin.

A Word of caution

Cake and Gradle are both task runners. I consider it bad practice to call one task runner out of another. It would be better to only have one tool per concern (i.e. task running) - but sometimes this is not feasible.


For questions and to discuss ideas & feature requests, use the GitHub discussions on the Cake GitHub repository, under the Extension Q&A category.

Join in the discussion on the Cake repository


Nils Andresen @nils-a


Cake.Gradle follows the Contributor Covenant Code of Conduct.

We accept Pull Requests. Please see the contributing file for how to contribute to Cake.Gradle.

Small note: If editing the Readme, please conform to the standard-readme specification.

This project follows the all-contributors specification. Contributions of any kind welcome!


Thanks goes to these wonderful people (emoji key):

<table> <tr> <td align="center"><a href=""><img src="" width="100px;" alt=""/><br /><sub><b>Christian Abegg</b></sub></a><br /><a href="" title="Code">💻</a></td> <td align="center"><a href=""><img src="" width="100px;" alt=""/><br /><sub><b>Nils Andresen</b></sub></a><br /><a href="" title="Code">💻</a></td> </tr> </table>


MIT License © Christian Abegg, Nils Andresen

Cake.Gradle includes third-party code which is licensed under its own respective license.


License: Unlicense,

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 346 12/6/2022
2.0.0 5,133 12/4/2021
1.1.0 1,291 5/25/2021
1.0.2 478 4/11/2021
1.0.1 547 3/12/2021
1.0.0 716 2/8/2021
0.4.1 1,511 12/28/2020
0.4.0 318 12/28/2020
0.3.0 662 12/17/2020
0.2.0 344 12/16/2020
0.1.1 5,076 9/9/2017
0.1.0 1,112 2/4/2017