Skip to content

Commit a4caaab

Browse files
committed
Update to Steeltoe v4.0-rc1
1 parent c63d4c9 commit a4caaab

File tree

15 files changed

+36
-48
lines changed

15 files changed

+36
-48
lines changed

Directory.Build.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,4 @@
1414

1515
<Import Project="Version.props" />
1616

17-
<Target Name="Pristine" AfterTargets="Clean">
18-
<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
19-
<RemoveDir Directories="$(BaseOutputPath)" />
20-
</Target>
21-
2217
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $ http -p b https://start.steeltoe.io/api/about
4141
"commit": "381bbd2a1e30d621ed6ad4a07790955447ffe468",
4242
"name": "Steeltoe.InitializrService",
4343
"url": "https://github.com/SteeltoeOSS/InitializrService/",
44-
"vendor": "SteeltoeOSS/VMware",
44+
"vendor": "SteeltoeOSS/Broadcom",
4545
"version": "0.8.0"
4646
}
4747
```

Version.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<GoogleAnalyticsTrackerVersion>7.0.1</GoogleAnalyticsTrackerVersion>
5-
<SteeltoeVersion>3.2.*</SteeltoeVersion>
6-
<YamlDotNetVersion>8.1.2</YamlDotNetVersion>
5+
<SteeltoeVersion>4.0.*-*</SteeltoeVersion>
6+
<YamlDotNetVersion>16.3.0</YamlDotNetVersion>
77
</PropertyGroup>
88

99
</Project>

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\Directory.Build.props" />
44

55
<PropertyGroup>
6-
<Authors>Steeltoe,VMware</Authors>
6+
<Authors>Steeltoe,Broadcom</Authors>
77
<PublishRepositoryUrl>true</PublishRepositoryUrl>
88
<IncludeSymbols>true</IncludeSymbols>
99
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -25,7 +25,7 @@
2525

2626
<ItemGroup>
2727
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
28-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
28+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
2929
<PrivateAssets>All</PrivateAssets>
3030
</PackageReference>
3131
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json" />

src/InitializrService.Config/UiConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public sealed class UiConfig
5151
/// <summary>
5252
/// Gets or sets the project dependencies.
5353
/// </summary>
54-
public GroupList Dependencies { get; set; } = new ();
54+
public GroupList Dependencies { get; set; } = new();
5555

5656
/// <summary>
5757
/// HTML form text data.

src/InitializrService.Config/Utilities/ReleaseRangeYamlConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public bool Accepts(Type type)
3636
}
3737

3838
/// <inheritdoc/>
39-
public object? ReadYaml(IParser parser, Type type)
39+
public object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
4040
{
4141
if (parser.TryConsume<Scalar>(out var expression))
4242
{
@@ -52,7 +52,7 @@ public bool Accepts(Type type)
5252
}
5353

5454
/// <inheritdoc/>
55-
public void WriteYaml(IEmitter emitter, object? value, Type type)
55+
public void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
5656
{
5757
throw new NotImplementedException();
5858
}

src/InitializrService/Configuration/UiConfigService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using Microsoft.Extensions.Logging;
66
using Microsoft.Extensions.Options;
7-
using Steeltoe.Extensions.Configuration.ConfigServer;
7+
using Steeltoe.Configuration.ConfigServer;
88
using Steeltoe.InitializrService.Config;
99
using Steeltoe.InitializrService.Services;
1010

@@ -27,15 +27,15 @@ public class UiConfigService : InitializrServiceBase, IUiConfigService
2727
/// <param name="logger">Injected logger.</param>
2828
public UiConfigService(
2929
IOptionsSnapshot<UiConfig> configuration,
30-
IOptions<ConfigServerClientSettingsOptions> settings,
30+
IOptions<ConfigServerClientOptions> settings,
3131
ILogger<UiConfigService> logger)
3232
: base(logger)
3333
{
3434
UiConfig = configuration.Value;
3535
Logger.LogDebug(
3636
"Config Server: uri={ConfigServer},env={Environment},label={Label}",
3737
settings.Value.Uri,
38-
settings.Value.Env,
38+
settings.Value.Environment,
3939
settings.Value.Label);
4040
}
4141

src/InitializrService/Controllers/ProjectController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.AspNetCore.Http;
66
using Microsoft.AspNetCore.Mvc;
77
using Microsoft.Extensions.Logging;
8-
using Steeltoe.InitializrService.Config;
98
using Steeltoe.InitializrService.Models;
109
using Steeltoe.InitializrService.Services;
1110
using System;

src/InitializrService/Controllers/RootController.cs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.AspNetCore.Mvc;
66
using Microsoft.Extensions.Logging;
77
using Microsoft.Extensions.Options;
8-
using Steeltoe.InitializrService.Config;
98
using Steeltoe.InitializrService.Services;
109
using System;
1110
using System.Collections.Generic;
@@ -73,23 +72,23 @@ public IActionResult GetHelp()
7372
help.Add("The URI templates take a set of parameters to customize the result of a request.");
7473
var table = new List<List<string>>
7574
{
76-
new () { "Parameter", "Description", "Default Value" },
77-
new () { "name", "project name", uiConfig.Name.Default },
78-
new () { "namespace", "namespace", uiConfig.Namespace.Default },
79-
new () { "description", "project description", uiConfig.Description.Default },
80-
new () { "steeltoeVersion", "Steeltoe version", uiConfig.SteeltoeVersion.Default },
81-
new () { "dotNetFramework", ".NET framework", uiConfig.DotNetFramework.Default },
82-
new () { "language", "programming language", uiConfig.Language.Default },
83-
new () { "packaging", "project packaging", uiConfig.Packaging.Default },
75+
new() { "Parameter", "Description", "Default Value" },
76+
new() { "name", "project name", uiConfig.Name.Default },
77+
new() { "namespace", "namespace", uiConfig.Namespace.Default },
78+
new() { "description", "project description", uiConfig.Description.Default },
79+
new() { "steeltoeVersion", "Steeltoe version", uiConfig.SteeltoeVersion.Default },
80+
new() { "dotNetFramework", ".NET framework", uiConfig.DotNetFramework.Default },
81+
new() { "language", "programming language", uiConfig.Language.Default },
82+
new() { "packaging", "project packaging", uiConfig.Packaging.Default },
8483
};
8584
help.AddRange(ToTable(table));
8685
help.Add(string.Empty);
8786
help.Add("The following section has a list of supported identifiers for the comma-separated");
8887
help.Add("list of \"dependencies\".");
89-
table = new List<List<string>>
90-
{
91-
new () { "Id", "Description", "Steeltoe Version", ".NET Framework" },
92-
};
88+
table =
89+
[
90+
["Id", "Description", "Steeltoe Version", ".NET Framework"]
91+
];
9392
table.AddRange(
9493
from @group in uiConfig.Dependencies.Values
9594
from dependency in @group.Values
@@ -109,7 +108,7 @@ from dependency in @group.Values
109108
return Ok(string.Join(newline, help));
110109
}
111110

112-
private static IEnumerable<string> ToTable(IReadOnlyList<List<string>> rows)
111+
private static List<string> ToTable(List<List<string>> rows)
113112
{
114113
var columnMaxWidth = new int[rows[0].Count];
115114
for (var column = 0; column < columnMaxWidth.Length; ++column)

src/InitializrService/Generators/NetCoreToolProjectGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Steeltoe.InitializrService.Generators
1919
/// </summary>
2020
public class NetCoreToolProjectGenerator : InitializrServiceBase, IProjectGenerator
2121
{
22-
private static readonly HttpClient Client = new ();
22+
private static readonly HttpClient Client = new();
2323

2424
private readonly string _netCoreToolServiceUri;
2525

0 commit comments

Comments
 (0)