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

Fix namespace for types in Cake.GitLabCI.Module #190

Merged
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
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 / build (ubuntu-latest)

}
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
Loading