diff --git a/.pipelines/build-pipelines.yml b/.pipelines/build-pipelines.yml
index 0a5c8b0fea..9b023afdc4 100644
--- a/.pipelines/build-pipelines.yml
+++ b/.pipelines/build-pipelines.yml
@@ -120,6 +120,14 @@ steps:
outputfile: $(Build.SourcesDirectory)/NOTICE.txt
outputformat: text
+- task: PowerShell@2
+ displayName: "Add ChilliCream License for Banana Cake Pop"
+ inputs:
+ targetType: 'filePath'
+ filePath: $(System.DefaultWorkingDirectory)/scripts/notice-generation.ps1
+ # Artifact Staging Directory used to temporarily store downloaded ChilliCream license.
+ arguments: $(Build.ArtifactStagingDirectory) $(Build.SourcesDirectory)
+
- template: templates/code-signing.yml
parameters:
# This is the path that will be used for packing nuget package.
@@ -187,6 +195,7 @@ steps:
displayName: "Upload build artifacts"
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
+ publishLocation: 'pipeline'
- task: NuGetCommand@2
displayName: 'Publish Nuget to Internal Feed'
diff --git a/scripts/notice-generation.ps1 b/scripts/notice-generation.ps1
new file mode 100644
index 0000000000..0ae656e30e
--- /dev/null
+++ b/scripts/notice-generation.ps1
@@ -0,0 +1,21 @@
+# Copyright (c) Microsoft Corporation.
+# Licensed under the MIT License.
+
+param (
+ [Parameter (Mandatory=$true)][string] $BuildArtifactStagingDir,
+ [Parameter (Mandatory=$true)][string] $BuildSourcesDir
+)
+
+# Download and save the ChilliCream License 1.0 from ChilliCream/graphql-platform GitHub repo
+$chiliCreamLicenseSavePath = "$BuildArtifactStagingDir/chillicreamlicense.txt"
+$chiliCreamLicenseMetadataURL = "https://raw.githubusercontent.com/ChilliCream/graphql-platform/main/website/src/basic/licensing/chillicream-license.md"
+Invoke-WebRequest $chiliCreamLicenseMetadataURL `
+| Select-Object -ExpandProperty Content `
+| Out-File $chiliCreamLicenseSavePath
+
+# Concatenate existing NOTICE.txt file with Chilicream license.
+$noticeFilePath = "$BuildSourcesDir/NOTICE.txt"
+# Add newline before and after to meet formatting requirements
+Add-Content $noticeFilePath -Value "`r`nBanana Cake Pop`r`n"
+Add-Content $noticeFilePath -Value "Copyright 2023 ChilliCream, Inc.`r`n"
+Add-Content $noticeFilePath -Value (Get-Content $chiliCreamLicenseSavePath)
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index 5075ad6333..cfd94a72ae 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -3,36 +3,36 @@
true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+