Cake.Gradle
4.0.0
dotnet add package Cake.Gradle --version 4.0.0
NuGet\Install-Package Cake.Gradle -Version 4.0.0
<PackageReference Include="Cake.Gradle" Version="4.0.0" />
paket add Cake.Gradle --version 4.0.0
#r "nuget: Cake.Gradle, 4.0.0"
#addin nuget:?package=Cake.Gradle&version=4.0.0
Cake.Gradle
Aliases to assist with running Gradle builds from Cake build scripts.
Table of Contents
Install
#addin nuget:?package=Cake.Gradle
Additionally, either gradle
has to be installed on the system or the project needs a gradle-wrapper (gradlew
)
Usage
#addin nuget:?package=Cake.Gradle
// Run 'gradle --version'
Task("Gradle-Version")
.Does(() =>
{
Gradle.WithArguments("--version").Run();
});
// Run 'gradle hello' in a specific folder
// Note: if you have a gradle wrapper setup in the specified path, this one will be used
Task("Gradle-Hello")
.Does(() =>
{
Gradle.FromPath("./example").WithTask("hello").Run();
});
// 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)
Task("Gradle-Hello-WithDefaultLogLevel")
.Does(() =>
{
Gradle.FromPath("./example").WithTask("hello").WithLogLevel(GradleLogLevel.Default).Run();
});
// Run 'gradle --offline --build-file build.gradle hello' in a specific folder
Task("Gradle-Hello-WithArguments")
.Does(() =>
{
Gradle.FromPath("./example").WithTask("hello").WithArguments("--offline --build-file build.gradle").Run();
});
Compatibility
Cake 0.33.0 and later.
Motivation
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.
Discussion
For questions and to discuss ideas & feature requests, use the GitHub discussions on the Cake GitHub repository, under the Extension Q&A category.
Maintainer
Contributing
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!
Contributors
Thanks goes to these wonderful people (emoji key):
<table> <tr> <td align="center"><a href="https://github.com/abeggchr"><img src="https://avatars1.githubusercontent.com/u/1616011?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christian Abegg</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.gradle/commits?author=abeggchr" title="Code">💻</a></td> <td align="center"><a href="https://github.com/nils-a"><img src="https://avatars3.githubusercontent.com/u/349188?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nils Andresen</b></sub></a><br /><a href="https://github.com/cake-contrib/cake.gradle/commits?author=nils-a" title="Code">💻</a></td> </tr> </table>
License
MIT License © Christian Abegg, Nils Andresen
Cake.Gradle includes third-party code which is licensed under its own respective license.
LitJSON
License: Unlicense, https://github.com/LitJSON/litjson/blob/develop/COPYING
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- JetBrains.Annotations (>= 2023.3.0)
- LitJson.Source (>= 0.19.0)
-
net7.0
- JetBrains.Annotations (>= 2023.3.0)
- LitJson.Source (>= 0.19.0)
-
net8.0
- JetBrains.Annotations (>= 2023.3.0)
- LitJson.Source (>= 0.19.0)
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 |
---|---|---|
4.0.0 | 674 | 11/23/2023 |
3.0.0 | 1,337 | 12/6/2022 |
2.0.0 | 7,339 | 12/4/2021 |
1.1.0 | 1,725 | 5/25/2021 |
1.0.2 | 586 | 4/11/2021 |
1.0.1 | 660 | 3/12/2021 |
1.0.0 | 831 | 2/8/2021 |
0.4.1 | 1,796 | 12/28/2020 |
0.4.0 | 428 | 12/28/2020 |
0.3.0 | 763 | 12/17/2020 |
0.2.0 | 448 | 12/16/2020 |
0.1.1 | 5,223 | 9/9/2017 |
0.1.0 | 1,290 | 2/4/2017 |