Skip to content

Commit

Permalink
Use Central Package Management (#3015)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored Dec 11, 2023
1 parent d724a64 commit 263685a
Show file tree
Hide file tree
Showing 20 changed files with 640 additions and 467 deletions.
16 changes: 4 additions & 12 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ Some common use cases include:
<!-- Versions -->
<PropertyGroup>
<FCSCommitHash>ee4a810ffe9e984e2ec8c55a9cb6d1c6631dd0b3</FCSCommitHash>
<StreamJsonRpcVersion>2.8.28</StreamJsonRpcVersion>
<FSharpCoreVersion>6.0.1</FSharpCoreVersion>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -52,22 +50,16 @@ Some common use cases include:
<FsDocsFaviconSource>images/favicon.ico</FsDocsFaviconSource>
<RepositoryUrl>https://github.com/fsprojects/fantomas</RepositoryUrl>
</PropertyGroup>

<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)fantomas_logo.png" Visible="false" Pack="true" PackagePath="" />
<None Include="$(MSBuildThisFileDirectory)README.md" Visible="false" Pack="true" PackagePath="" />
<PackageReference Include="Ionide.KeepAChangelog.Tasks" Version="0.1.8" PrivateAssets="all" />
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="G-Research.FSharp.Analyzers" Version="0.5.1">
<PackageReference Include="G-Research.FSharp.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build</IncludeAssets>
</PackageReference>
<PackageReference Include="Ionide.Analyzers" Version="0.5.1">
<PackageReference Include="Ionide.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="FSharp.Analyzers.Build" Version="0.2.0" PrivateAssets="All" />
<PackageReference Include="FSharp.Analyzers.Build" PrivateAssets="All" />
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<Project>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)fantomas_logo.png" Visible="false" Pack="true" PackagePath="" />
<None Include="$(MSBuildThisFileDirectory)README.md" Visible="false" Pack="true" PackagePath="" />
<PackageReference Include="Ionide.KeepAChangelog.Tasks" PrivateAssets="all" />
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup>
<CodeRoot Condition="$(CodeRoot) == ''">.</CodeRoot>
<FSharpAnalyzersOtherFlags>--analyzers-path &quot;$(PkgG-Research_FSharp_Analyzers)/analyzers/dotnet/fs&quot;</FSharpAnalyzersOtherFlags>
Expand Down
40 changes: 40 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="FSharp.Core" Version="6.0.1"/>
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Runtime" Version="4.3.1" />
<PackageVersion Include="FsLexYacc" Version="11.2.0" />

<PackageVersion Include="Ionide.KeepAChangelog.Tasks" Version="0.1.8"/>
<PackageVersion Include="DotNet.ReproducibleBuilds" Version="1.1.1"/>

<PackageVersion Include="G-Research.FSharp.Analyzers" Version="0.5.1" />
<PackageVersion Include="Ionide.Analyzers" Version="0.5.1" />
<PackageVersion Include="FSharp.Analyzers.Build" Version="0.2.0" />

<PackageVersion Include="StreamJsonRpc" Version="2.8.28" />
<PackageVersion Include="SemanticVersioning" Version="2.0.2" />
<PackageVersion Include="Serilog" Version="3.1.1"/>
<PackageVersion Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageVersion Include="SerilogTraceListener" Version="3.2.1-dev-00011" />
<PackageVersion Include="Argu" Version="6.1.1" />
<PackageVersion Include="Thoth.Json.Net" Version="8.0.0" />
<PackageVersion Include="editorconfig" Version="0.15.0" />
<PackageVersion Include="Ignore" Version="0.1.50" />
<PackageVersion Include="System.IO.Abstractions" Version="20.0.4" />
<PackageVersion Include="Spectre.Console" Version="0.48.0" />
<PackageVersion Include="BenchmarkDotNet" Version="0.13.11" />

<PackageVersion Include="CliWrap" Version="3.6.4" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageVersion Include="NUnit" Version="3.13.3"/>
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0"/>
<PackageVersion Include="System.IO.Abstractions.TestingHelpers" Version="20.0.4" />
<PackageVersion Include="FsCheck" Version="2.16.5" />
<PackageVersion Include="FsUnit" Version="4.2.0" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.Core" Version="6.0.4" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
<PackageReference Include="FSharp.Core" />
<PackageReference Include="BenchmarkDotNet" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Fantomas.Core\Fantomas.Core.fsproj" />
Expand Down
Loading

0 comments on commit 263685a

Please sign in to comment.