Skip to content

Commit 31691ae

Browse files
Merge branch 'release/7.0.0'
2 parents b33faa9 + d6cfc34 commit 31691ae

11 files changed

+61
-25
lines changed

.appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#---------------------------------#
22
# Build Image #
33
#---------------------------------#
4-
image: Visual Studio 2019
4+
image: Ubuntu
55

66
#---------------------------------#
77
# Build Script #
88
#---------------------------------#
99
build_script:
10-
- ps: .\build.ps1 --target=CI
10+
- sh: ./build.sh --target=CI
1111

1212
#---------------------------------#
1313
# Tests

.github/workflows/build.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@ name: Build
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- develop
8+
- "feature/**"
9+
- "release/**"
10+
- "hotfix/**"
11+
tags:
12+
- "*"
513
paths-ignore:
614
- "README.md"
715
pull_request:
816

917
jobs:
1018
build:
1119
runs-on: ${{ matrix.os }}
12-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1320
strategy:
1421
matrix:
1522
os: [windows-latest, ubuntu-18.04, macos-latest]
@@ -39,6 +46,15 @@ jobs:
3946

4047
- name: Fetch all tags and branches
4148
run: git fetch --prune --unshallow
49+
50+
- name: Install .NET SDK
51+
uses: actions/setup-dotnet@v1
52+
with:
53+
# gitversion needs 5.0 and we need all SDKs the project is targeting
54+
dotnet-version: |
55+
3.1.415
56+
5.0.403
57+
6.0.100
4258
4359
- name: Cache Tools
4460
uses: actions/cache@v2

.github/workflows/codeql-analysis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ jobs:
3838
# the head of the pull request instead of the merge commit.
3939
- run: git checkout HEAD^2
4040
if: ${{ github.event_name == 'pull_request' }}
41+
42+
- name: Install .NET SDK
43+
uses: actions/setup-dotnet@v1
44+
with:
45+
# gitversion needs 5.0 and we need all SDKs the project is targeting
46+
dotnet-version: |
47+
3.1.415
48+
5.0.403
49+
6.0.100
4150
4251
# Initializes the CodeQL tools for scanning.
4352
- name: Initialize CodeQL

.github/workflows/dependabot-cake.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
runs-on: ubuntu-18.04 # linux, because this is a docker-action
1111
steps:
1212
- name: check/update cake dependencies
13-
uses: nils-org/dependabot-cake-action@v1
13+
uses: nils-org/dependabot-cake-action@v1.1.0

.github/workflows/release-notes.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
2222
- name: Set up git version
2323
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
24-
uses: gittools/actions/gitversion/[email protected].9
24+
uses: gittools/actions/gitversion/[email protected].11
2525
with:
2626
versionSpec: "5.x"
2727
- name: Run git version
2828
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }}
2929
id: gitversion
30-
uses: gittools/actions/gitversion/[email protected].9
30+
uses: gittools/actions/gitversion/[email protected].11
3131
- name: Create release branch ${{ github.event.inputs.version }}
3232
if: ${{ steps.gitversion.outputs.majorMinorPatch }}
3333
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }}

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ Please visit the Cake Documentation for a list of available aliases:
1818

1919
[http://cakebuild.net/dsl/json](http://cakebuild.net/dsl/json)
2020

21+
## Discussion
22+
23+
For questions and to discuss ideas & feature requests, use the [GitHub discussions on the Cake GitHub repository](https://github.com/cake-build/cake/discussions), under the [Extension Q&A](https://github.com/cake-build/cake/discussions/categories/extension-q-a) category.
24+
25+
[![Join in the discussion on the Cake repository](https://img.shields.io/badge/GitHub-Discussions-green?logo=github)](https://github.com/cake-build/cake/discussions)
26+
27+
2128
## Apache License 2.0
2229
Apache Cake.Json Copyright 2015. The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

recipe.cake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#load nuget:?package=Cake.Recipe&version=2.2.0
1+
#load nuget:?package=Cake.Recipe&version=2.2.1
22

33
Environment.SetVariableNames();
44

src/Cake.Json.Tests/Cake.Json.Tests.csproj

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net50;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Cake.Core" Version="1.0.0" />
10-
<PackageReference Include="Cake.Testing" Version="1.0.0" />
11-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
9+
<PackageReference Include="Cake.Core" Version="2.0.0" />
10+
<PackageReference Include="Cake.Testing" Version="2.0.0" />
11+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
15-
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
16-
<PackageReference Include="NSubstitute" Version="4.2.1" />
15+
<PackageReference Include="NSubstitute" Version="4.2.2" />
1716
<PackageReference Include="xunit" Version="2.4.1" />
18-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2" />
19-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
20-
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
17+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
19+
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
2120
<PrivateAssets>all</PrivateAssets>
2221
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2322
</PackageReference>

src/Cake.Json.Tests/FakeCakeArguments.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using System;
21
using Cake.Core;
2+
using System;
33
using System.Collections.Generic;
44

55
namespace Cake.Json.Tests
@@ -62,6 +62,11 @@ public ICollection<string> GetArguments(string name)
6262
ICollection<string> collection = value;
6363
return collection ?? Array.Empty<string>();
6464
}
65+
66+
public IDictionary<string, ICollection<string>> GetArguments()
67+
{
68+
return _arguments as IDictionary<string, ICollection<string>>;
69+
}
6570
}
6671
}
6772

src/Cake.Json/Cake.Json.csproj

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net50;netstandard2.0;net46</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<IncludeSymbols>true</IncludeSymbols>
77
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
@@ -12,7 +12,7 @@
1212
<Title>Cake.Json</Title>
1313
<Summary>JSON Serialization and manipulation addon for cake build.</Summary>
1414
<Description>Cake Build addon for JSON Serialization and manipulation.</Description>
15-
<PackageTags>cake;script;build;cake-addin</PackageTags>
15+
<PackageTags>cake;script;build;cake-addin;addin;cake-build</PackageTags>
1616
<Authors>Redth</Authors>
1717
<Owners>Redth, cake-contrib</Owners>
1818
<RepositoryUrl>https://github.com/cake-contrib/Cake.Json.git</RepositoryUrl>
@@ -23,18 +23,18 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="Cake.Core" Version="1.0.0" PrivateAssets="All" />
27-
<PackageReference Include="Cake.Common" Version="1.0.0" PrivateAssets="All" />
28-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
26+
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
27+
<PackageReference Include="Cake.Common" Version="2.0.0" PrivateAssets="All" />
28+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
<PrivateAssets>all</PrivateAssets>
3131
</PackageReference>
32-
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
33-
<PackageReference Include="Cake.Addin.Analyzer" Version="0.1.1">
32+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
33+
<PackageReference Include="Cake.Addin.Analyzer" Version="0.1.3">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>
37-
<PackageReference Include="CakeContrib.Guidelines" Version="0.5.0">
37+
<PackageReference Include="CakeContrib.Guidelines" Version="1.3.0">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4040
</PackageReference>

src/Cake.Json/icon.png

313 Bytes
Loading

0 commit comments

Comments
 (0)