Skip to content

Commit 6b038d0

Browse files
authored
migrate to central package management (#303)
* migrate to CPM Signed-off-by: Oisin Grehan <oisin.grehan@ionodes.com>
1 parent f22fda2 commit 6b038d0

File tree

20 files changed

+80
-40
lines changed

20 files changed

+80
-40
lines changed

Directory.Packages.props

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project>
2+
<ItemGroup>
3+
<PackageVersion Include="AMQPNetLite" Version="2.4.11" />
4+
<PackageVersion Include="AMQPNetLite.Serialization" Version="2.4.11" />
5+
<PackageVersion Include="Apache.Avro" Version="1.11.3" />
6+
<PackageVersion Include="Confluent.Kafka" Version="1.9.3" />
7+
<PackageVersion Include="Google.Protobuf" Version="3.27.3" />
8+
<PackageVersion Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />
9+
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
10+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.32" />
11+
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
12+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
13+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
14+
<PackageVersion Include="MQTTnet" Version="4.3.6.1152" />
15+
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
16+
<PackageVersion Include="Nullable" Version="1.3.1" />
17+
<PackageVersion Include="System.Memory" Version="4.5.5" />
18+
<PackageVersion Include="System.Text.Encodings.Web" Version="8.0.0" />
19+
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
20+
<PackageVersion Include="xunit" Version="2.9.0" />
21+
<PackageVersion Include="xunit.runner.console" Version="2.9.0" />
22+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
23+
</ItemGroup>
24+
</Project>

samples/CloudNative.CloudEvents.AspNetCoreSample/CloudNative.CloudEvents.AspNetCoreSample.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0</TargetFrameworks>
@@ -11,3 +11,4 @@
1111
</ItemGroup>
1212

1313
</Project>
14+

samples/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<SignAssembly>True</SignAssembly>
1212
<Deterministic>True</Deterministic>
1313
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
14-
14+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
15+
1516
<!-- Never pack any sample projects -->
1617
<IsPackable>False</IsPackable>
1718
</PropertyGroup>

samples/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<!-- Use SourceLink for all production projects, as a simple way of handling DeterministicSourcePaths -->
33
<ItemGroup>
4-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
4+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
55
</ItemGroup>
66
</Project>

samples/HttpSend/HttpSend.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />
9+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" />
1010
<ProjectReference Include="..\..\src\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
1111
<ProjectReference Include="..\..\src\CloudNative.CloudEvents.NewtonsoftJson\CloudNative.CloudEvents.NewtonsoftJson.csproj" />
1212
</ItemGroup>
1313

1414
</Project>
15+
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
@@ -9,11 +9,12 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="AMQPNetLite" Version="2.4.11" />
13-
<PackageReference Include="AMQPNetLite.Serialization" Version="2.4.11" />
12+
<PackageReference Include="AMQPNetLite" />
13+
<PackageReference Include="AMQPNetLite.Serialization" />
1414
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
1515
<!-- Source-only package with nullable reference annotations. -->
16-
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="All" />
16+
<PackageReference Include="Nullable" PrivateAssets="All" />
1717
</ItemGroup>
1818

1919
</Project>
20+

src/CloudNative.CloudEvents.AspNetCore/CloudNative.CloudEvents.AspNetCore.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
@@ -13,12 +13,13 @@
1313
</ItemGroup>
1414

1515
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'">
16-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
17-
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
16+
<PackageReference Include="Microsoft.AspNetCore.Http" />
17+
<PackageReference Include="System.Text.Encodings.Web" />
1818
</ItemGroup>
1919

2020
<ItemGroup>
2121
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
2222
</ItemGroup>
2323

2424
</Project>
25+

src/CloudNative.CloudEvents.Avro/CloudNative.CloudEvents.Avro.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
@@ -9,13 +9,13 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Apache.Avro" Version="1.11.3" />
12+
<PackageReference Include="Apache.Avro" />
1313
<!--
1414
- Explicit dependency just to avoid a vulnerable version being exposed via Apache.Avro.
1515
- If Apache.Avro publishes a new version that updates the dependency (to 13.0.1 or higher)
1616
- we can remove our explicit dependency.
1717
-->
18-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
18+
<PackageReference Include="Newtonsoft.Json" />
1919
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
2020
</ItemGroup>
2121

@@ -24,3 +24,4 @@
2424
</ItemGroup>
2525

2626
</Project>
27+

src/CloudNative.CloudEvents.Kafka/CloudNative.CloudEvents.Kafka.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
@@ -9,8 +9,9 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Confluent.Kafka" Version="1.9.3" />
12+
<PackageReference Include="Confluent.Kafka" />
1313
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
1414
</ItemGroup>
1515

1616
</Project>
17+

src/CloudNative.CloudEvents.Mqtt/CloudNative.CloudEvents.Mqtt.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
@@ -11,8 +11,9 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="MQTTnet" Version="4.3.6.1152" />
14+
<PackageReference Include="MQTTnet" />
1515
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
1616
</ItemGroup>
1717

1818
</Project>
19+

0 commit comments

Comments
 (0)