Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Include Cake.BuildSystems module by default #150

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/SharedBuild.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
"System.Diagnostics.DiagnosticSource": "8.0.1"
}
},
"Cake.BuildSystems.Module": {
"type": "Transitive",
"resolved": "7.1.0",
"contentHash": "/QO0f2S8qZKpO3a5xvXa1kLd0vhJFjC/7h4Qa3VfkY2YdRT0Mxwx9Ky5MbjE0rqGD79XSgT4lxDJU4N/speaQA=="
},
"Cake.Cli": {
"type": "Transitive",
"resolved": "5.0.0",
Expand Down Expand Up @@ -476,6 +481,7 @@
"grynwald.sharedbuild": {
"type": "Project",
"dependencies": {
"Cake.BuildSystems.Module": "[7.1.0, )",
"Cake.FileHelpers": "[7.0.0, )",
"Cake.Frosting": "[5.0.0, )",
"Cake.GitVersioning": "[3.7.112, )",
Expand Down
6 changes: 5 additions & 1 deletion src/SharedBuild/CakeHostExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Linq;
using System.Reflection;
using Cake.AzurePipelines.Module;
using Cake.Frosting;
using Cake.GitHubActions.Module;
using Microsoft.Extensions.DependencyInjection;

namespace Grynwald.SharedBuild;
Expand All @@ -18,7 +20,9 @@ public static CakeHost UseSharedBuild<TContext>(this CakeHost host, Func<Type, b
{
return host
.UseContext<TContext>()
.AddAssembly(typeof(CakeHostExtensions).Assembly, taskFilter);
.AddAssembly(typeof(CakeHostExtensions).Assembly, taskFilter)
.UseModule<AzurePipelinesModule>()
.UseModule<GitHubActionsModule>();
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/SharedBuild/Grynwald.SharedBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageReference Include="Cake.GitVersioning" Version="3.7.112" />
<PackageReference Include="Cake.FileHelpers" Version="7.0.0" />
<PackageReference Include="Mono.Cecil" Version="0.11.6" />
<PackageReference Include="Cake.BuildSystems.Module" Version="7.1.0" />
</ItemGroup>

<!-- Cake.GitHub (currently pulled in via git submodules instead of NuGet) -->
Expand Down
6 changes: 6 additions & 0 deletions src/SharedBuild/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"version": 1,
"dependencies": {
"net9.0": {
"Cake.BuildSystems.Module": {
"type": "Direct",
"requested": "[7.1.0, )",
"resolved": "7.1.0",
"contentHash": "/QO0f2S8qZKpO3a5xvXa1kLd0vhJFjC/7h4Qa3VfkY2YdRT0Mxwx9Ky5MbjE0rqGD79XSgT4lxDJU4N/speaQA=="
},
"Cake.FileHelpers": {
"type": "Direct",
"requested": "[7.0.0, )",
Expand Down
Loading