Skip to content

Commit

Permalink
Merge pull request cake-contrib#190 from ap0llo/fix-namespaces-in-git…
Browse files Browse the repository at this point in the history
…lab-ci-module

Fix namespace for types in Cake.GitLabCI.Module
  • Loading branch information
nils-a authored Feb 19, 2024
2 parents a285922 + 23257ef commit acfe8b4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Cake.GitLabCI.Module/AnsiEscapeCodes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
internal static class AnsiEscapeCodes
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.GitLabCI.Module/GitLabCILog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using JetBrains.Annotations;

namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
/// <summary>
/// <see cref="ICakeLog"/> implementation for GitLab CI.
Expand Down
20 changes: 20 additions & 0 deletions src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;

using Cake.Core.Composition;

namespace Cake.AzurePipelines.Module
{
/// <summary>
/// Legacy <see cref="ICakeModule"/> implementation for GitLab CI.
/// </summary>
/// <remarks>
/// When <see cref="GitLabCIModule"/> was introduced initially, it was placed in the <c>Cake.AzurePipelines.Module</c> namespace by accident.
/// <para>
/// The namespace has since been adjusted, but this class is still provided in the <c>Cake.AzurePipelines.Module</c> namespace for backwards compatibility in Cake.Frosting projects.
/// When possible, use <see cref="GitLabCI.Module.GitLabCIModule"/> instead.
/// </para>
/// </remarks>
[Obsolete($"Use {nameof(GitLabCIModule)} from namespace Cake.GitLabCI.Module instead")]
public class GitLabCIModule : GitLabCI.Module.GitLabCIModule
{ }

Check warning on line 19 in src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Check warning on line 19 in src/Cake.GitLabCI.Module/GitLabCIModule.Obsolete.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

}
4 changes: 2 additions & 2 deletions src/Cake.GitLabCI.Module/GitLabCIModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using Cake.Core.Composition;
using Cake.Core.Diagnostics;

[assembly: CakeModule(typeof(Cake.AzurePipelines.Module.GitLabCIModule))]
[assembly: CakeModule(typeof(Cake.GitLabCI.Module.GitLabCIModule))]

namespace Cake.AzurePipelines.Module
namespace Cake.GitLabCI.Module
{
/// <summary>
/// <see cref="ICakeModule"/> implementation for GitLab CI.
Expand Down

0 comments on commit acfe8b4

Please sign in to comment.