Skip to content

Commit b5f3896

Browse files
committed
Cleaning up obsolete versions.
1 parent 9b889ca commit b5f3896

12 files changed

+173
-243
lines changed

src/PostSharp.Engineering.BuildTools/ContinuousIntegration/GitHubRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class GitHubRepository : VcsRepository
3232

3333
public override bool IsSshAgentRequired => true;
3434

35-
public GitHubRepository( string name, string owner = "postsharp", string? defaultBranchParameter = null )
35+
public GitHubRepository( string name, string owner, string? defaultBranchParameter = null )
3636
: base( defaultBranchParameter )
3737
{
3838
this.Name = name;

src/PostSharp.Engineering.BuildTools/Dependencies/Definitions/BusinessSystemsDependencies.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public BusinessSystemsDependencyDefinition( string dependencyName, bool isGitHub
1717
dependencyName,
1818
"master",
1919
null,
20-
isGitHub ? new GitHubRepository( dependencyName ) : new AzureDevOpsRepository( Family.Name, dependencyName ),
20+
isGitHub ? new GitHubRepository( dependencyName, "postsharp" ) : new AzureDevOpsRepository( Family.Name, dependencyName ),
2121
TeamCityHelper.CreateConfiguration( TeamCityHelper.GetProjectId( dependencyName, "Websites And Business Systems" ) ),
2222
false ) { }
2323
}

src/PostSharp.Engineering.BuildTools/Dependencies/Definitions/DevelopmentDependencies.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class DevelopmentDependencies
1717
"PostSharp.Engineering",
1818
$"develop/{Family.Version}",
1919
$"release/{Family.Version}",
20-
new GitHubRepository( "PostSharp.Engineering" ),
20+
new GitHubRepository( "PostSharp.Engineering", "postsharp" ),
2121
TeamCityHelper.CreateConfiguration(
2222
TeamCityHelper.GetProjectId( "PostSharp.Engineering", Family.Name ) ) )
2323
{

src/PostSharp.Engineering.BuildTools/Dependencies/Definitions/MetalamaDependencies.V2024_2.cs

Lines changed: 70 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ public static partial class MetalamaDependencies
1414
{
1515
// ReSharper disable once InconsistentNaming
1616

17+
[Obsolete("Metalama 2024.2 is no longer maintained or built.")]
1718
[PublicAPI]
1819
public static class V2024_2
1920
{
2021
private class MetalamaDependencyDefinition : DependencyDefinition
2122
{
2223
public MetalamaDependencyDefinition(
2324
string dependencyName,
24-
VcsProvider vcsProvider,
25+
VcsProvider vcsProvider,
2526
MetalamaGitHubOrganization? organization,
2627
bool isVersioned = true,
2728
string? parentCiProjectId = null,
@@ -38,7 +39,7 @@ public MetalamaDependencyDefinition(
3839
customReleaseBranch ?? $"release/{Family.Version}",
3940
CreateMetalamaVcsRepository(
4041
customRepositoryName ?? dependencyName,
41-
vcsProvider,
42+
vcsProvider,
4243
organization,
4344
customBranch == null && customReleaseBranch == null
4445
? null
@@ -50,159 +51,159 @@ public MetalamaDependencyDefinition(
5051
isVersioned,
5152
pullRequestRequiresStatusCheck: pullRequestRequiresStatusCheck,
5253
vcsRootProjectId: vcsRootProjectId ),
53-
isVersioned )
54+
isVersioned )
5455
{ }
5556
}
5657

5758
public static ProductFamily Family { get; } = new( _projectName, "2024.2", DevelopmentDependencies.Family, PostSharpDependencies.V2024_1.Family )
5859
{
59-
DockerBaseImage = DockerImages.WindowsServerCore, /* UpstreamProductFamily = V2024_1.Family, */
60+
DockerBaseImage = DockerImages.WindowsServerCore, /* UpstreamProductFamily = V2024_1.Family, */
6061
DownstreamProductFamily = V2025_0.Family
6162
};
6263

63-
public static DependencyDefinition MetalamaBackstage { get; } =
64-
new MetalamaDependencyDefinition(
65-
"Metalama.Backstage",
66-
VcsProvider.GitHub,
64+
public static DependencyDefinition MetalamaBackstage { get; } =
65+
new MetalamaDependencyDefinition(
66+
"Metalama.Backstage",
67+
VcsProvider.GitHub,
6768
MetalamaGitHubOrganization.PostSharp );
6869

69-
public static DependencyDefinition Consolidated { get; } =
70+
public static DependencyDefinition Consolidated { get; } =
7071
new MetalamaDependencyDefinition(
7172
ProductFamily.ConsolidatedProjectName,
72-
VcsProvider.AzureDevOps,
73+
VcsProvider.AzureDevOps,
7374
null,
7475
false,
7576
customRepositoryName: "Metalama.Consolidated" );
7677

7778
// The release build is intentionally used for the debug configuration because we want dependencies to consume the release
7879
// build, for performance reasons. The debug build will be used only locally, and for this we don't need a configuration here.
79-
public static DependencyDefinition MetalamaCompiler { get; } =
80+
public static DependencyDefinition MetalamaCompiler { get; } =
8081
new MetalamaDependencyDefinition(
8182
"Metalama.Compiler",
82-
VcsProvider.GitHub,
83+
VcsProvider.GitHub,
8384
MetalamaGitHubOrganization.Metalama )
8485
{
85-
EngineeringDirectory = "eng-Metalama",
86+
EngineeringDirectory = "eng-Metalama",
8687
PrivateArtifactsDirectory = Path.Combine( "artifacts", "packages", "$(MSSBuildConfiguration)", "Shipping" )
8788
};
8889

8990
public static DependencyDefinition MetalamaFrameworkRunTime { get; } =
90-
new MetalamaDependencyDefinition(
91-
"Metalama.Framework.RunTime",
92-
VcsProvider.GitHub,
91+
new MetalamaDependencyDefinition(
92+
"Metalama.Framework.RunTime",
93+
VcsProvider.GitHub,
9394
MetalamaGitHubOrganization.PostSharp );
9495

95-
public static DependencyDefinition MetalamaFrameworkPrivate { get; } =
96+
public static DependencyDefinition MetalamaFrameworkPrivate { get; } =
9697
new MetalamaDependencyDefinition(
9798
"Metalama.Framework.Private",
98-
VcsProvider.GitHub,
99+
VcsProvider.GitHub,
99100
MetalamaGitHubOrganization.PostSharp,
100101
isVersioned: false,
101-
pullRequestRequiresStatusCheck: false )
102-
{
103-
GenerateSnapshotDependency = false
102+
pullRequestRequiresStatusCheck: false )
103+
{
104+
GenerateSnapshotDependency = false
104105
};
105106

106-
public static DependencyDefinition Metalama { get; } =
107+
public static DependencyDefinition Metalama { get; } =
107108
new MetalamaDependencyDefinition(
108109
"Metalama",
109-
VcsProvider.GitHub,
110+
VcsProvider.GitHub,
110111
MetalamaGitHubOrganization.PostSharp,
111112
customRepositoryName: "Metalama.Framework" );
112113

113-
public static DependencyDefinition MetalamaVsx { get; } =
114-
new MetalamaDependencyDefinition(
115-
"Metalama.Vsx",
116-
VcsProvider.AzureDevOps,
114+
public static DependencyDefinition MetalamaVsx { get; } =
115+
new MetalamaDependencyDefinition(
116+
"Metalama.Vsx",
117+
VcsProvider.AzureDevOps,
117118
null );
118119

119-
public static DependencyDefinition MetalamaExtensions { get; } =
120-
new MetalamaDependencyDefinition(
121-
"Metalama.Extensions",
122-
VcsProvider.GitHub,
120+
public static DependencyDefinition MetalamaExtensions { get; } =
121+
new MetalamaDependencyDefinition(
122+
"Metalama.Extensions",
123+
VcsProvider.GitHub,
123124
MetalamaGitHubOrganization.PostSharp );
124125

125126
public static DependencyDefinition MetalamaSamples { get; } =
126-
new MetalamaDependencyDefinition(
127-
"Metalama.Samples",
128-
VcsProvider.GitHub,
129-
MetalamaGitHubOrganization.Metalama )
130-
{
131-
CodeStyle = "Metalama.Samples"
127+
new MetalamaDependencyDefinition(
128+
"Metalama.Samples",
129+
VcsProvider.GitHub,
130+
MetalamaGitHubOrganization.Metalama )
131+
{
132+
CodeStyle = "Metalama.Samples"
132133
};
133134

134135
public static DependencyDefinition TimelessDotNetEngineer { get; } =
135-
new MetalamaDependencyDefinition(
136-
"TimelessDotNetEngineer",
137-
VcsProvider.GitHub,
138-
MetalamaGitHubOrganization.PostSharp )
139-
{
140-
CodeStyle = "Metalama.Samples"
136+
new MetalamaDependencyDefinition(
137+
"TimelessDotNetEngineer",
138+
VcsProvider.GitHub,
139+
MetalamaGitHubOrganization.PostSharp )
140+
{
141+
CodeStyle = "Metalama.Samples"
141142
};
142143

143-
public static DependencyDefinition MetalamaMigration { get; } =
144-
new MetalamaDependencyDefinition(
145-
"Metalama.Migration",
146-
VcsProvider.GitHub,
144+
public static DependencyDefinition MetalamaMigration { get; } =
145+
new MetalamaDependencyDefinition(
146+
"Metalama.Migration",
147+
VcsProvider.GitHub,
147148
MetalamaGitHubOrganization.PostSharp );
148149

149-
public static DependencyDefinition MetalamaLinqPad { get; } =
150-
new MetalamaDependencyDefinition(
151-
"Metalama.LinqPad",
152-
VcsProvider.GitHub,
150+
public static DependencyDefinition MetalamaLinqPad { get; } =
151+
new MetalamaDependencyDefinition(
152+
"Metalama.LinqPad",
153+
VcsProvider.GitHub,
153154
MetalamaGitHubOrganization.PostSharp );
154155

155-
public static DependencyDefinition MetalamaCommunity { get; } =
156-
new MetalamaDependencyDefinition(
157-
"Metalama.Community",
158-
VcsProvider.GitHub,
156+
public static DependencyDefinition MetalamaCommunity { get; } =
157+
new MetalamaDependencyDefinition(
158+
"Metalama.Community",
159+
VcsProvider.GitHub,
159160
MetalamaGitHubOrganization.PostSharp );
160161

161-
public static DependencyDefinition MetalamaDocumentation { get; } =
162+
public static DependencyDefinition MetalamaDocumentation { get; } =
162163
new MetalamaDependencyDefinition(
163164
"Metalama.Documentation",
164-
VcsProvider.GitHub,
165+
VcsProvider.GitHub,
165166
MetalamaGitHubOrganization.Metalama,
166167
false );
167168

168-
public static DependencyDefinition MetalamaPatterns { get; } =
169+
public static DependencyDefinition MetalamaPatterns { get; } =
169170
new MetalamaDependencyDefinition(
170171
"Metalama.Patterns",
171-
VcsProvider.GitHub,
172+
VcsProvider.GitHub,
172173
MetalamaGitHubOrganization.PostSharp );
173174

174-
public static DependencyDefinition NopCommerce { get; } =
175+
public static DependencyDefinition NopCommerce { get; } =
175176
new MetalamaDependencyDefinition(
176177
"Metalama.Tests.NopCommerce",
177-
VcsProvider.GitHub,
178+
VcsProvider.GitHub,
178179
MetalamaGitHubOrganization.PostSharp,
179180
false,
180181
parentCiProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}_MetalamaTests",
181182
vcsRootProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}",
182183
customBranch: $"dev/{Family.Version}" );
183184

184-
public static DependencyDefinition CargoSupport { get; } =
185+
public static DependencyDefinition CargoSupport { get; } =
185186
new MetalamaDependencyDefinition(
186187
"Metalama.Tests.CargoSupport",
187-
VcsProvider.AzureDevOps,
188+
VcsProvider.AzureDevOps,
188189
null,
189190
false,
190191
parentCiProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}_MetalamaTests",
191-
vcsRootProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}" );
192-
193-
public static DependencyDefinition DotNetSdkTests { get; } =
192+
vcsRootProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}" );
193+
194+
public static DependencyDefinition DotNetSdkTests { get; } =
194195
new MetalamaDependencyDefinition(
195196
"Metalama.Tests.DotNetSdk",
196-
VcsProvider.GitHub,
197+
VcsProvider.GitHub,
197198
MetalamaGitHubOrganization.Metalama,
198199
false,
199200
parentCiProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}_MetalamaTests",
200201
vcsRootProjectId: $"Metalama_Metalama{Family.VersionWithoutDots}" );
201202

202-
public static DependencyDefinition MetalamaPerformance { get; } =
203+
public static DependencyDefinition MetalamaPerformance { get; } =
203204
new MetalamaDependencyDefinition(
204205
"Metalama.Performance",
205-
VcsProvider.GitHub,
206+
VcsProvider.GitHub,
206207
MetalamaGitHubOrganization.Metalama,
207208
false );
208209
}

0 commit comments

Comments
 (0)