Skip to content

Commit e857b6d

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

File tree

13 files changed

+25
-37
lines changed

13 files changed

+25
-37
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: 1 addition & 1 deletion
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>

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: 5 additions & 6 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;
@@ -86,10 +85,10 @@ public IActionResult GetHelp()
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/Program.cs

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

55
using Microsoft.AspNetCore.Hosting;
66
using Microsoft.Extensions.Hosting;
7-
using Steeltoe.Extensions.Configuration.ConfigServer;
8-
using Steeltoe.Extensions.Logging;
7+
using Steeltoe.Configuration.ConfigServer;
98
using Steeltoe.InitializrService.Models;
9+
using Steeltoe.Logging.DynamicConsole;
1010
using System.Diagnostics.CodeAnalysis;
1111
using System.Reflection;
1212

@@ -22,21 +22,17 @@ static Program()
2222
{
2323
var versionAttr =
2424
typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
25-
var fields = versionAttr?.InformationalVersion.Split('+');
26-
if (fields is null)
27-
{
28-
fields = new[] { "unknown" };
29-
}
25+
var fields = versionAttr?.InformationalVersion.Split('+') ?? ["unknown"];
3026

3127
if (fields.Length == 1)
3228
{
33-
fields = new[] { fields[0], "unknown" };
29+
fields = [fields[0], "unknown"];
3430
}
3531

3632
About = new About
3733
{
3834
Name = typeof(Program).Namespace ?? "unknown",
39-
Vendor = "SteeltoeOSS/VMware",
35+
Vendor = "SteeltoeOSS/Broadcom",
4036
Url = "https://github.com/SteeltoeOSS/InitializrService/",
4137
Version = fields[0],
4238
Commit = fields[1],

src/InitializrService/Startup.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
using Microsoft.Extensions.DependencyInjection;
99
using Microsoft.Extensions.Hosting;
1010
using Microsoft.Extensions.Logging;
11-
using Steeltoe.Extensions.Configuration.ConfigServer;
11+
using Steeltoe.Configuration.ConfigServer;
1212
using Steeltoe.InitializrService.Config;
1313
using Steeltoe.InitializrService.Configuration;
1414
using Steeltoe.InitializrService.Generators;
1515
using Steeltoe.InitializrService.Services;
16-
using Steeltoe.Management.Endpoint;
16+
using Steeltoe.Management.Endpoint.Actuators.All;
1717
using System;
1818
using System.Collections.Generic;
1919
using System.Diagnostics.CodeAnalysis;
@@ -81,7 +81,6 @@ public void ConfigureServices(IServiceCollection services)
8181
services.AddResponseCompression();
8282
services.AddTransient<IProjectGenerator, NetCoreToolProjectGenerator>();
8383
services.AddAllActuators();
84-
services.ActivateActuatorEndpoints();
8584
services.AddGoogleAnalyticsTracker(trackerOptions => { trackerOptions.TrackerId = Configuration.GetValue<string>("GoogleAnalytics:TrackerId"); });
8685
services.AddControllers().AddJsonOptions(jsonOptions =>
8786
{

0 commit comments

Comments
 (0)