Skip to content

Commit

Permalink
Use Central Package Management (#525)
Browse files Browse the repository at this point in the history
* Use Central Package Management
  • Loading branch information
KrzysztofPajak authored Nov 22, 2024
1 parent 47d12ab commit 1e28483
Show file tree
Hide file tree
Showing 31 changed files with 210 additions and 143 deletions.
67 changes: 67 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="MaxMind.GeoIP2" Version="5.2.0"/>
<PackageVersion Include="ExcelMapper" Version="5.2.483"/>
<PackageVersion Include="Scryber.Core" Version="6.0.4-beta"/>
<PackageVersion Include="Scryber.Core.OpenType" Version="6.1.0-beta"/>
<PackageVersion Include="MailKit" Version="4.8.0"/>
<PackageVersion Include="AWSSDK.Core" Version="3.7.400.40"/>
<PackageVersion Include="AWSSDK.S3" Version="3.7.405.4"/>
<PackageVersion Include="Azure.Storage.Blobs" Version="12.22.2"/>
<PackageVersion Include="SkiaSharp" Version="2.88.8"/>
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8"/>
<PackageVersion Include="LiteDB" Version="5.0.17"/>
<PackageVersion Include="MongoDB.Bson" Version="3.0.0"/>
<PackageVersion Include="MongoDB.Driver" Version="3.0.0"/>
<PackageVersion Include="DotLiquid" Version="2.2.692"/>
<PackageVersion Include="FluentValidation.DependencyInjectionExtensions" Version="11.10.0"/>
<PackageVersion Include="GoogleAuthenticator" Version="3.2.0"/>
<PackageVersion Include="MassTransit" Version="8.3.0"/>
<PackageVersion Include="MassTransit.RabbitMQ" Version="8.3.0"/>
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0"/>
<PackageVersion Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="8.0.0"/>
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10"/>
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1"/>
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1"/>
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="8.0.2"/>
<PackageVersion Include="AutoMapper" Version="13.0.1"/>
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0"/>
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0"/>
<PackageVersion Include="MediatR" Version="12.4.1"/>
<PackageVersion Include="Scrutor" Version="5.0.1"/>
<PackageVersion Include="StackExchange.Redis" Version="2.8.16"/>
<PackageVersion Include="FluentValidation" Version="11.10.0"/>
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.10"/>
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10"/>
<PackageVersion Include="Microsoft.AspNetCore.OData" Version="9.0.0"/>
<PackageVersion Include="MongoDB.AspNetCore.OData" Version="1.0.1"/>
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.9.0"/>
<PackageVersion Include="Swashbuckle.AspNetCore.Annotations" Version="6.9.0"/>
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="8.0.10"/>
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.10"/>
<PackageVersion Include="Braintree" Version="5.27.0"/>
<PackageVersion Include="System.Xml.XPath.XmlDocument" Version="4.3.0"/>
<PackageVersion Include="Stripe.net" Version="46.2.1"/>
<PackageVersion Include="elFinder.Net.AspNetCore" Version="1.5.0"/>
<PackageVersion Include="elFinder.Net.Core" Version="1.5.0"/>
<PackageVersion Include="elFinder.Net.Drivers.FileSystem" Version="1.5.0"/>
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Blobs" Version="1.3.4"/>
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.2.4"/>
<PackageVersion Include="Azure.Identity" Version="1.13.1"/>
<PackageVersion Include="Flurl.Http" Version="4.0.2"/>
<PackageVersion Include="Microsoft.ApplicationInsights.Profiler.AspNetCore" Version="2.7.2"/>
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.10"/>
<PackageVersion Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.24.0"/>
<PackageVersion Include="Wangkanai.Detection" Version="8.14.0"/>
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.10"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageVersion Include="Moq" Version="4.20.72"/>
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.1"/>
<PackageVersion Include="MSTest.TestFramework" Version="3.6.1"/>
<PackageVersion Include="coverlet.collector" Version="6.0.2"/>
<PackageVersion Include="NUnit" Version="4.2.2"/>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<ProjectReference Include="..\Grand.Business.Core\Grand.Business.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MaxMind.GeoIP2" Version="5.2.0" />
<PackageReference Include="MaxMind.GeoIP2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\Build\Grand.Common.props" />
<ItemGroup>
<PackageReference Include="ExcelMapper" Version="5.2.483" />
<PackageReference Include="Scryber.Core" Version="6.0.4-beta" />
<PackageReference Include="Scryber.Core.OpenType" Version="6.1.0-beta" />
<PackageReference Include="ExcelMapper" />
<PackageReference Include="Scryber.Core" />
<PackageReference Include="Scryber.Core.OpenType" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Grand.Domain\Grand.Domain.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<ProjectReference Include="..\Grand.Business.Core\Grand.Business.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MailKit" Version="4.8.0" />
<PackageReference Include="MailKit" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<ProjectReference Include="..\Grand.Business.Core\Grand.Business.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.7.400.40" />
<PackageReference Include="AWSSDK.S3" Version="3.7.405.4" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.22.2" />
<PackageReference Include="SkiaSharp" Version="2.88.8" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" />
<PackageReference Include="AWSSDK.Core" />
<PackageReference Include="AWSSDK.S3" />
<PackageReference Include="Azure.Storage.Blobs" />
<PackageReference Include="SkiaSharp" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions src/Core/Grand.Data/Grand.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\Build\Grand.Common.props" />
<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.17" />
<PackageReference Include="MongoDB.Bson" Version="3.0.0" />
<PackageReference Include="MongoDB.Driver" Version="3.0.0" />
<PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="LiteDB" />
<PackageReference Include="MongoDB.Bson" />
<PackageReference Include="MongoDB.Driver" />
<PackageReference Include="DotLiquid" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Grand.Domain/Grand.Domain.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\Build\Grand.Common.props" />
<ItemGroup>
<PackageReference Include="MongoDB.Bson" Version="3.0.0" />
<PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="MongoDB.Bson" />
<PackageReference Include="DotLiquid" />
</ItemGroup>

<ItemGroup>
Expand Down
34 changes: 17 additions & 17 deletions src/Core/Grand.Infrastructure/Grand.Infrastructure.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\Build\Grand.Common.props" />
<ItemGroup>
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.10.0" />
<PackageReference Include="GoogleAuthenticator" Version="3.2.0" />
<PackageReference Include="MassTransit" Version="8.3.0" />
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.2" />
<PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
<PackageReference Include="MediatR" Version="12.4.1" />
<PackageReference Include="Scrutor" Version="5.0.1" />
<PackageReference Include="StackExchange.Redis" Version="2.8.16" />
<PackageReference Include="FluentValidation" Version="11.10.0" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" />
<PackageReference Include="GoogleAuthenticator" />
<PackageReference Include="MassTransit" />
<PackageReference Include="MassTransit.RabbitMQ" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" />
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" />
<PackageReference Include="AutoMapper" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" />
<PackageReference Include="MediatR" />
<PackageReference Include="Scrutor" />
<PackageReference Include="StackExchange.Redis" />
<PackageReference Include="FluentValidation" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Grand.Data\Grand.Data.csproj" />
Expand Down
12 changes: 6 additions & 6 deletions src/Modules/Grand.Module.Api/Grand.Module.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.OData" Version="9.0.0" />
<PackageReference Include="MongoDB.AspNetCore.OData" Version="1.0.1" >
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" />
<PackageReference Include="Microsoft.AspNetCore.OData" />
<PackageReference Include="MongoDB.AspNetCore.OData" >
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" />
</ItemGroup>
<Target Name="CopyMongoDBODataDLL" AfterTargets="Build">
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" />
</ItemGroup>

<Target Name="CopyFile" AfterTargets="AfterBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" />
</ItemGroup>

<Target Name="CopyFile" AfterTargets="AfterBuild">
Expand Down
4 changes: 2 additions & 2 deletions src/Plugins/Payments.BrainTree/Payments.BrainTree.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Braintree" Version="5.27.0" />
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
<PackageReference Include="Braintree" />
<PackageReference Include="System.Xml.XPath.XmlDocument" />
</ItemGroup>

<Target Name="CopyFile" AfterTargets="AfterBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Stripe.net" Version="46.2.1" />
<PackageReference Include="Stripe.net" />
</ItemGroup>

<Target Name="CopyFile" AfterTargets="AfterBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Loading

0 comments on commit 1e28483

Please sign in to comment.