Skip to content

Commit

Permalink
Merge pull request #219 from nils-a/release/3.0.0
Browse files Browse the repository at this point in the history
Release/3.0.0
  • Loading branch information
nils-a authored Dec 1, 2021
2 parents 2b19ce9 + 60be5a2 commit 9821f69
Show file tree
Hide file tree
Showing 30 changed files with 277 additions and 280 deletions.
6 changes: 4 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ test: off
build: off

environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
JAVA_HOME: C:\Program Files\Java\jdk11
#PUBLISH_TOKEN: token to JB-Marketplace for publishing


build_script:
- ps: .\build.ps1 --target=CI
- ps: |
$env:Path="$env:JAVA_HOME\bin;$env:Path"
.\build.ps1 --target=CI
cache:
- "tools -> recipe.cake"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout the requested branch
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0

- name: Fetch all tags and branches
run: git fetch --prune --unshallow
Expand All @@ -37,24 +37,24 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
java-version: '11'

# Cache Gradle Wrapper
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

# Cache Cake tools
- name: Cache Tools
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@v1.3.0
uses: cake-build/cake-action@v1.4.0
with:
script-path: recipe.cake
target: CI
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/input/docs/integrations/editors/rider/index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RedirectFrom: docs/editors/rider

<div class="alert alert-info">
<p>
The <a href="https://plugins.jetbrains.com/plugin/15729-cake-rider" target="_blank">Cake plugin for Rider</a> supports Rider version 2020.2 and newer.
The <a href="https://plugins.jetbrains.com/plugin/15729-cake-rider" target="_blank">Cake plugin for Rider</a> supports Rider version 2021.2 and newer.
</p>
</div>

Expand Down
16 changes: 13 additions & 3 deletions docs/input/docs/integrations/editors/rider/run-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In order to use the run configurations you must have Cake installed on your mach
</p>
<pre><code class="language-cmd hljs">dotnet tool install --global Cake.Tool</code></pre>
<p>
This is the default setup in Cake for Rider.
This is the default setup in Cake for Rider. Alternatively it is also possible to use a project local installation of the Cake .NET Tool.
</p>
</div>
<div id="frosting" class="tab-pane fade">
Expand Down Expand Up @@ -112,6 +112,14 @@ in the [Cake Tasks window](#running-builds-directly).
### Runner settings

Allows to define the runner to use.

The first option, *Use 'dotnet cake' instead of executable*, will use `dotnet cake` as the runner.
The `dotnet` executable must be in available in the path and the Cake .NET Tool must either be globally installed to the machine
or locally installed to the project. If this option is set, all other options on the settings page are ignored.

Alternatively, when *Use 'dotnet cake' instead of executable* is not set,
a path to the Cake executable (either `dotnet-cake.exe`, or `cake.exe`) has to be supplied:

Different runners for different operating systems can be set by defining a regular expression which is matched against the system property `os.name`.

The Cake runner settings are able to process environment variables: Use a specific variable like `${VARIABLE}` and the environment variable will be expanded when the runner is called.
Expand Down Expand Up @@ -146,8 +154,10 @@ An editor for run configurations is available:

* *Ensure .NET Tool (Global)*:
Ensures the Cake .NET tool is installed globally before running Cake.

![Run Actions](/assets/img/cake-rider/docs/beforeRunAction-ensureTool.png){.img-responsive}
* *Restore .NET Tools*:
Restores the .NET tools, effectively calling `dotnet tool restore` before running the build.

![Run Actions](/assets/img/cake-rider/docs/beforeRunActions.png){.img-responsive}

## Running builds directly

Expand Down
4 changes: 2 additions & 2 deletions src/dotnet/cake-rider/Templates/BoolTemplateProviders.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Host.Features.ProjectModel.ProjectTemplates.DotNetExtensions;
using JetBrains.ReSharper.Host.Features.ProjectModel.ProjectTemplates.DotNetTemplates;
using JetBrains.Rider.Backend.Features.ProjectModel.ProjectTemplates.DotNetExtensions;
using JetBrains.Rider.Backend.Features.ProjectModel.ProjectTemplates.DotNetTemplates;
using JetBrains.Rider.Model;

namespace net.cakebuild.Templates
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/cake-rider/Templates/ParameterProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.ReSharper.Host.Features.ProjectModel.ProjectTemplates.DotNetExtensions;
using JetBrains.Rider.Backend.Features.ProjectModel.ProjectTemplates.DotNetExtensions;

namespace net.cakebuild.Templates
{
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet/cake-rider/Templates/TextTemplateProviders.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;
using JetBrains.ReSharper.Host.Features.ProjectModel.ProjectTemplates.DotNetExtensions;
using JetBrains.ReSharper.Host.Features.ProjectModel.ProjectTemplates.DotNetTemplates;
using JetBrains.Rider.Backend.Features.ProjectModel.ProjectTemplates.DotNetExtensions;
using JetBrains.Rider.Backend.Features.ProjectModel.ProjectTemplates.DotNetTemplates;
using JetBrains.Rider.Model;

namespace net.cakebuild.Templates
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet/cake-rider/cake-rider.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<TargetFramework>net472</TargetFramework>
<AssemblyName>cake-rider</AssemblyName>
<RootNamespace>net.cakebuild</RootNamespace>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand All @@ -11,7 +11,7 @@

<PropertyGroup>
<!-- will be injected by gradle at build -->
<SdkVersion Condition="'$(SdkVersion)' == ''">2020.1.1</SdkVersion>
<SdkVersion Condition="'$(SdkVersion)' == ''">2021.2.1</SdkVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 1 addition & 4 deletions src/rider/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rider/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions src/rider/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 0 additions & 65 deletions src/rider/.idea/libraries-with-intellij-classes.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/rider/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/rider/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9821f69

Please sign in to comment.