Skip to content

Commit

Permalink
Merge pull request #142 from nils-a/release/5.0.0
Browse files Browse the repository at this point in the history
Release/5.0.0
  • Loading branch information
nils-a authored Aug 30, 2023
2 parents ebaeecc + 869c43e commit 1b826d3
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 80 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ jobs:
- name: Fetch all tags and branches
run: git fetch --prune --unshallow

- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# codecov and unittests need 2.1
dotnet-version: '2.1.818'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: '3.1.414'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# gitversion needs 5.0
dotnet-version: '5.0.402'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# need at least .NET 6 to build
dotnet-version: '6.0.400'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# codecov and unittests need 2.1
dotnet-version: '2.1.818'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: '3.1.414'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# gitversion needs 5.0
dotnet-version: '5.0.402'
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
# need at least .NET 6 to build
dotnet-version: '6.0.400'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.AzurePipelines.Module</AssemblyName>
<IsPackable>false</IsPackable>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
6 changes: 3 additions & 3 deletions src/Cake.BuildSystems.Module/Cake.BuildSystems.Module.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<IsPackable>true</IsPackable>
<IncludeSymbols>true</IncludeSymbols>
Expand All @@ -12,7 +12,7 @@
auto-detection of ProjectType/Version will fail
-->
<CakeContribGuidelinesProjectType>module</CakeContribGuidelinesProjectType>
<CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>2.0.0</CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>
<CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>3.0.0</CakeContribGuidelinesOverrideTargetFrameworkCakeVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -55,7 +55,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
<PackageReference Include="CakeContrib.Guidelines" Version="1.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.GitHubActions.Module</AssemblyName>
<IsPackable>false</IsPackable>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
10 changes: 5 additions & 5 deletions src/Cake.Module.Shared/Cake.Module.Shared.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.Module.Shared</AssemblyName>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
42 changes: 1 addition & 41 deletions src/Cake.Module.Shared/CakeEngineBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Cake.Core;
Expand Down Expand Up @@ -27,16 +27,6 @@ protected CakeEngineBase(ICakeEngine implementation)
_engine = implementation;
}

#pragma warning disable CS0618
/// <inheritdoc cref="ICakeEngine.Setup"/>
[Obsolete]
public event EventHandler<SetupEventArgs> Setup
{
add { _engine.Setup += value; }
remove { _engine.Setup -= value; }
}
#pragma warning restore CS0618

/// <inheritdoc cref="ICakeEngine.BeforeSetup"/>
public event EventHandler<BeforeSetupEventArgs> BeforeSetup
{
Expand All @@ -51,16 +41,6 @@ public event EventHandler<AfterSetupEventArgs> AfterSetup
remove { _engine.AfterSetup -= value; }
}

#pragma warning disable CS0618
/// <inheritdoc cref="ICakeEngine.Teardown"/>
[Obsolete]
public event EventHandler<TeardownEventArgs> Teardown
{
add { _engine.Teardown += value; }
remove { _engine.Teardown -= value; }
}
#pragma warning restore CS0618

/// <inheritdoc cref="ICakeEngine.BeforeTeardown"/>
public event EventHandler<BeforeTeardownEventArgs> BeforeTeardown
{
Expand All @@ -75,16 +55,6 @@ public event EventHandler<AfterTeardownEventArgs> AfterTeardown
remove { _engine.AfterTeardown -= value; }
}

#pragma warning disable CS0618
/// <inheritdoc cref="ICakeEngine.TaskSetup"/>
[Obsolete]
public event EventHandler<TaskSetupEventArgs> TaskSetup
{
add { _engine.TaskSetup += value; }
remove { _engine.TaskSetup -= value; }
}
#pragma warning restore CS0618

/// <inheritdoc cref="ICakeEngine.BeforeTaskSetup"/>
public event EventHandler<BeforeTaskSetupEventArgs> BeforeTaskSetup
{
Expand All @@ -99,16 +69,6 @@ public event EventHandler<AfterTaskSetupEventArgs> AfterTaskSetup
remove { _engine.AfterTaskSetup -= value; }
}

#pragma warning disable CS0618
/// <inheritdoc cref="ICakeEngine.TaskTeardown"/>
[Obsolete]
public event EventHandler<TaskTeardownEventArgs> TaskTeardown
{
add { _engine.TaskTeardown += value; }
remove { _engine.TaskTeardown -= value; }
}
#pragma warning restore CS0618

/// <inheritdoc cref="ICakeEngine.BeforeTaskTeardown"/>
public event EventHandler<BeforeTaskTeardownEventArgs> BeforeTaskTeardown
{
Expand Down
18 changes: 18 additions & 0 deletions src/Cake.Module.Shared/CakeReportPrinterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ public CakeReportPrinterBase(IConsole console, ICakeContext context)
/// <inheritdoc />
public abstract void Write(CakeReport report);

/// <inheritdoc/>
public virtual void WriteLifeCycleStep(string name, Verbosity verbosity)
{
new CakeReportPrinter(_console, _context).WriteLifeCycleStep(name, verbosity);
}

/// <inheritdoc/>
public virtual void WriteStep(string name, Verbosity verbosity)
{
new CakeReportPrinter(_console, _context).WriteLifeCycleStep(name, verbosity);
}

/// <inheritdoc/>
public virtual void WriteSkippedStep(string name, Verbosity verbosity)
{
new CakeReportPrinter(_console, _context).WriteLifeCycleStep(name, verbosity);
}

/// <summary>
/// Writes the report to the <see cref="IConsole"/>.
/// </summary>
Expand Down
10 changes: 5 additions & 5 deletions src/Cake.MyGet.Module/Cake.MyGet.Module.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.MyGet.Module</AssemblyName>
<IsPackable>false</IsPackable>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
10 changes: 5 additions & 5 deletions src/Cake.TeamCity.Module/Cake.TeamCity.Module.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.TeamCity.Module</AssemblyName>
<IsPackable>false</IsPackable>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
10 changes: 5 additions & 5 deletions src/Cake.TravisCI.Module/Cake.TravisCI.Module.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Cake.TravisCI.Module</AssemblyName>
<IsPackable>false</IsPackable>
Expand All @@ -12,9 +12,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Common" Version="3.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 1b826d3

Please sign in to comment.