Skip to content

Commit 824ffc2

Browse files
austindrenskiaskpt
authored andcommitted
chore: Enable Central Package Management (CPM) (#178)
Signed-off-by: Austin Drenski <[email protected]> Signed-off-by: André Silva <[email protected]>
1 parent f40ce57 commit 824ffc2

File tree

7 files changed

+60
-54
lines changed

7 files changed

+60
-54
lines changed

Directory.Packages.props

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
</PropertyGroup>
6+
7+
<ItemGroup Label="src">
8+
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
9+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="2.0.0" />
10+
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />
11+
<PackageVersion Include="System.Collections.Immutable" Version="1.7.1" />
12+
<PackageVersion Include="System.Threading.Channels" Version="6.0.0" />
13+
</ItemGroup>
14+
15+
<ItemGroup Label="test">
16+
<PackageVersion Include="AutoFixture" Version="4.17.0" />
17+
<PackageVersion Include="BenchmarkDotNet" Version="0.13.1" />
18+
<PackageVersion Include="coverlet.collector" Version="3.1.2" />
19+
<PackageVersion Include="coverlet.msbuild" Version="3.1.2" />
20+
<PackageVersion Include="FluentAssertions" Version="6.7.0" />
21+
<PackageVersion Include="GitHubActionsTestLogger" Version="2.3.3" />
22+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
23+
<PackageVersion Include="NSubstitute" Version="5.0.0" />
24+
<PackageVersion Include="OpenFeature.Contrib.Providers.Flagd" Version="0.1.5" />
25+
<PackageVersion Include="SpecFlow" Version="3.9.74" />
26+
<PackageVersion Include="SpecFlow.Tools.MsBuild.Generation" Version="3.9.74" />
27+
<PackageVersion Include="SpecFlow.xUnit" Version="3.9.74" />
28+
<PackageVersion Include="xunit" Version="[2.4.1, 3.0)" />
29+
<PackageVersion Include="xunit.runner.visualstudio" Version="[2.4.3, 3.0)" />
30+
</ItemGroup>
31+
32+
</Project>

build/Common.props

+3-12
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,12 @@
1414
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1515
</PropertyGroup>
1616

17-
<PropertyGroup Label="Package versions used in this repository">
18-
<!--
19-
Please sort alphabetically.
20-
Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
21-
-->
22-
<MicrosoftBclAsyncInterfacesVer>[8.0.0,)</MicrosoftBclAsyncInterfacesVer>
23-
<MicrosoftExtensionsLoggerVer>[2.0,)</MicrosoftExtensionsLoggerVer>
24-
</PropertyGroup>
25-
2617
<ItemGroup>
27-
<PackageReference Include="System.Collections.Immutable" Version="[1.7.1,)" />
28-
<PackageReference Include="System.Threading.Channels" Version="[6.0.0,)" />
18+
<PackageReference Include="System.Collections.Immutable" />
19+
<PackageReference Include="System.Threading.Channels" />
2920
</ItemGroup>
3021

3122
<ItemGroup Condition="'$(OS)' == 'Unix'">
32-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
23+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="all" />
3324
</ItemGroup>
3425
</Project>

build/Common.tests.props

+1-17
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="GitHubActionsTestLogger" Version="$(GitHubActionsTestLoggerVer)" />
19+
<PackageReference Include="GitHubActionsTestLogger" />
2020
</ItemGroup>
21-
22-
<PropertyGroup Label="Package versions used in this repository">
23-
<!--
24-
Please sort alphabetically.
25-
Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
26-
-->
27-
<AutoFixtureVer>[4.17.0]</AutoFixtureVer>
28-
<BenchmarkDotNetVer>[0.13.1]</BenchmarkDotNetVer>
29-
<CoverletCollectorVer>[3.1.2]</CoverletCollectorVer>
30-
<FluentAssertionsVer>[6.7.0]</FluentAssertionsVer>
31-
<GitHubActionsTestLoggerVer>[2.3.3]</GitHubActionsTestLoggerVer>
32-
<MicrosoftNETTestSdkPkgVer>[17.2.0]</MicrosoftNETTestSdkPkgVer>
33-
<NSubstituteVer>[5.0.0]</NSubstituteVer>
34-
<XUnitRunnerVisualStudioPkgVer>[2.4.3,3.0)</XUnitRunnerVisualStudioPkgVer>
35-
<XUnitPkgVer>[2.4.1,3.0)</XUnitPkgVer>
36-
</PropertyGroup>
3721
</Project>

src/OpenFeature/OpenFeature.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="$(MicrosoftBclAsyncInterfacesVer)" Condition="'$(TargetFramework)' == 'net462'" />
11-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="$(MicrosoftBclAsyncInterfacesVer)" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
12-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsLoggerVer)" />
10+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' == 'net462'" />
11+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
12+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

test/OpenFeature.Benchmarks/OpenFeature.Benchmarks.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="AutoFixture" Version="$(AutoFixtureVer)" />
11-
<PackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVer)" />
10+
<PackageReference Include="AutoFixture" />
11+
<PackageReference Include="BenchmarkDotNet" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

test/OpenFeature.E2ETests/OpenFeature.E2ETests.csproj

+11-12
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="AutoFixture" Version="$(AutoFixtureVer)" />
11-
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVer)">
10+
<PackageReference Include="AutoFixture" />
11+
<PackageReference Include="coverlet.collector">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="coverlet.msbuild" Version="$(CoverletCollectorVer)">
15+
<PackageReference Include="coverlet.msbuild">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="OpenFeature.Contrib.Providers.Flagd" Version="0.1.5" />
20-
<PackageReference Include="SpecFlow" Version="*" />
21-
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="*" />
22-
<PackageReference Include="SpecFlow.xUnit" Version="3.9.74" />
23-
<PackageReference Include="NUnit" Version="3.13.2" />
24-
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVer)" />
25-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPkgVer)" />
26-
<PackageReference Include="xunit" Version="$(XUnitPkgVer)" />
27-
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitRunnerVisualStudioPkgVer)">
19+
<PackageReference Include="OpenFeature.Contrib.Providers.Flagd" />
20+
<PackageReference Include="SpecFlow" />
21+
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" />
22+
<PackageReference Include="SpecFlow.xUnit" />
23+
<PackageReference Include="FluentAssertions" />
24+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
25+
<PackageReference Include="xunit" />
26+
<PackageReference Include="xunit.runner.visualstudio">
2827
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2928
<PrivateAssets>all</PrivateAssets>
3029
</PackageReference>

test/OpenFeature.Tests/OpenFeature.Tests.csproj

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="AutoFixture" Version="$(AutoFixtureVer)" />
11-
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVer)">
10+
<PackageReference Include="AutoFixture" />
11+
<PackageReference Include="coverlet.collector">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="coverlet.msbuild" Version="$(CoverletCollectorVer)">
15+
<PackageReference Include="coverlet.msbuild">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVer)" />
20-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPkgVer)" />
21-
<PackageReference Include="NSubstitute" Version="$(NSubstituteVer)" />
22-
<PackageReference Include="xunit" Version="$(XUnitPkgVer)" />
23-
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitRunnerVisualStudioPkgVer)">
19+
<PackageReference Include="FluentAssertions" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
21+
<PackageReference Include="NSubstitute" />
22+
<PackageReference Include="xunit" />
23+
<PackageReference Include="xunit.runner.visualstudio">
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
<PrivateAssets>all</PrivateAssets>
2626
</PackageReference>

0 commit comments

Comments
 (0)