Skip to content

Commit

Permalink
Merge pull request #36 from episerver/feature/MAR-1618-Update-license…
Browse files Browse the repository at this point in the history
…-text-header-in-nuget-packages

Update license texts in Nuget packages as required by legal:
  • Loading branch information
Tson-optimizely authored Jul 25, 2023
2 parents 4372642 + fb51ccd commit 65c0f9d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
21 changes: 13 additions & 8 deletions build/licenses/LICENSE.txt.template
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
EPISERVER SOFTWARE LICENSE
OPTIMIZELY NUGET PACKAGES
RIGHTS OF USE

SOFTWARE LICENSE
Refer to the Episerver End User License Agreement:
https://www.episerver.com/eula.

IMPLEMENTED SOFTWARE
Implemented Software, as defined by the Episerver End User License Agreement
(https://www.episerver.com/eula), used in this Nuget package is listed below
together with the corresponding license.
For Customers with Software Services Use Terms under an Optimizely Software
Subscription Agreement –
https://www.optimizely.com/legal/software-services-use-terms

For Customers with legacy end user license agreement or legacy end user
services agreement -
https://www.optimizely.com/legal/end-user-licence-agreement, or
https://www.optimizely.com/legal/end-user-services-agreement


Additional license terms and /or notices with respect to this Nuget Package,
if any, are set out below.
1 change: 0 additions & 1 deletion build/licenses/NO-THIRD-PARTY-LICENSES.txt

This file was deleted.

7 changes: 3 additions & 4 deletions build/nuspec.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
<NuspecProperties>Configuration=$(Configuration);Version=$(PackageVersion)</NuspecProperties>
<PackageOutputPath>$(SolutionDir)artifacts\packages\</PackageOutputPath>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);GenerateLicenseFiles</TargetsForTfmSpecificContentInPackage>
<LicenseFiles>$(SolutionDir)build\licenses\NO-THIRD-PARTY-LICENSES.txt</LicenseFiles>
<LicenseTemplate>$(SolutionDir)build\licenses\LICENSE.txt.template</LicenseTemplate>
</PropertyGroup>

<Target Name="GenerateLicenseFiles" >
<ItemGroup>
<LicenseFiles Include="$(LicenseTemplate)" Condition="'$(LicenseTemplate)' != ''" />
<LicenseFiles Include="$(LicenseFiles)" Condition="'$(LicenseFiles)' != ''"/>
<LicenseContents Include="$([System.IO.File]::ReadAllText(%(LicenseFiles.Identity)))" Condition="'$(LicenseFiles)' != ''"/>
<LicenseItems Include="$(LicenseTemplate)" Condition="'$(LicenseTemplate)' != ''" />
<LicenseItems Include="$(LicenseFiles)" Condition="'$(LicenseFiles)' != ''"/>
<LicenseContents Include="$([System.IO.File]::ReadAllText(%(LicenseItems.Identity)))" Condition="'@(LicenseItems)' != ''"/>
</ItemGroup>
<WriteLinesToFile File="license.txt" Lines="@(LicenseContents->'%(Identity)%0D%0A')" Overwrite="true" />
</Target>
Expand Down

0 comments on commit 65c0f9d

Please sign in to comment.