You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2021/12/27 23:10:32 UTC
[lucenenet] 01/02: Directory.Build.props: Added SourceLink support and deterministic builds: https://github.com/dotnet/sourcelink/blob/main/README.md
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit fe4c0ffdfcaf35fc440f26d0b2e7cf014f1544e9
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Dec 24 02:21:08 2021 +0700
Directory.Build.props: Added SourceLink support and deterministic builds: https://github.com/dotnet/sourcelink/blob/main/README.md
---
Directory.Build.props | 22 ++++++++++++++++++++--
build/NuGet.props | 1 -
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 532a8c6..8881ad5 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -22,7 +22,7 @@
<PropertyGroup>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
-
+
<!-- IMPORTANT: When these values are changed, the CI counter number should also be reset. -->
<PropertyGroup Label="Version of Builds">
<!-- IMPORTANT: VersionPrefix must always be the same as the Lucene version this is based on.
@@ -54,7 +54,7 @@
<!-- This is the new symbols format (the only one currently supported at NuGet.org) -->
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
-
+
<PropertyGroup Label="Copyright Info">
<Product>Lucene.Net</Product>
<Company>The Apache Software Foundation</Company>
@@ -65,6 +65,24 @@
<Copyright>Copyright © $(CopyrightYearRange) $(Company)</Copyright>
</PropertyGroup>
+ <PropertyGroup Label="SourceLink Settings: https://github.com/dotnet/sourcelink/blob/main/README.md">
+ <PublishRepositoryUrl>true</PublishRepositoryUrl>
+ <EmbedUntrackedSources>true</EmbedUntrackedSources>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(BUILD_REPOSITORY_PROVIDER)' == 'GitHub' Or '$(BUILD_REPOSITORY_PROVIDER)' == 'TfsGit' " Label="Deterministic builds: https://github.com/clairernovotny/DeterministicBuilds#readme">
+ <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
+ </PropertyGroup>
+
+ <!-- This is for testing only, we use SourceLink from any Azure DevOps git repo -->
+ <ItemGroup Condition=" '$(BUILD_REPOSITORY_PROVIDER)' == 'TfsGit' " Label="SourceLink Packages (experimental Azure Repos)">
+ <PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.1.1" PrivateAssets="All"/>
+ </ItemGroup>
+
+ <ItemGroup Condition=" '$(BUILD_REPOSITORY_PROVIDER)' == 'GitHub' " Label="SourceLink Packages (main repo)">
+ <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
+ </ItemGroup>
+
<!-- Settings to override the above Version of Builds. These can be used to
"freeze" the build number for a release, so whether building within
an IDE or from the commmand line, the version is always what is
diff --git a/build/NuGet.props b/build/NuGet.props
index b7c3e39..3eaf84a 100644
--- a/build/NuGet.props
+++ b/build/NuGet.props
@@ -23,7 +23,6 @@
<IsPackable>true</IsPackable>
<PackageTags>lucene.net;core;text;search;information;retrieval;lucene;apache;analysis;index;query</PackageTags>
<Authors>The Apache Software Foundation</Authors>
- <RepositoryUrl>https://github.com/apache/lucenenet</RepositoryUrl>
<PackageProjectUrl>https://lucenenet.apache.org</PackageProjectUrl>
<PackageIcon>lucene-net-icon-128x128.png</PackageIcon>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>