From 2ae8cd6b8f98c3c97276cd4704816dcb1678f184 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Thu, 10 Nov 2022 13:42:46 -0500 Subject: [PATCH] Update Cake.MinVer to target Cake v3.0.0 (#50) --- .github/workflows/ci.yml | 22 +++++-------------- LICENSE | 2 +- README.md | 9 ++++---- global.json | 2 +- src/Cake.MinVer/Cake.MinVer.csproj | 8 +++---- .../Cake.MinVer.Tests.csproj | 8 +++---- 6 files changed, 21 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7683b98..35b278f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,34 +26,24 @@ jobs: fail-fast: false matrix: job: - - os: ubuntu-18.04 - build: ./build.sh - - os: ubuntu-20.04 + - os: ubuntu-22.04 build: ./build.sh push: true - - os: windows-2019 - build: ./build.cmd - os: windows-2022 build: ./build.cmd - - os: macos-10.15 - build: ./build.sh - - os: macos-11 + - os: macos-12 build: ./build.sh name: ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }} steps: - - name: Setup netcoreapp3.1 - uses: actions/setup-dotnet@v3.0.3 - with: - dotnet-version: "3.1.413" - - name: Setup net5.0 + - name: Setup net6.0 uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: "5.0.401" - - name: Setup net6.0 + dotnet-version: "6.0.403" + - name: Setup net7.0 uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: "6.0.100" + dotnet-version: "7.0.100" - name: Run dotnet --info run: dotnet --info - uses: actions/checkout@v3.1.0 diff --git a/LICENSE b/LICENSE index c60976f..3eb44f8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2021 C. Augusto Proiete & Contributors +Copyright (c) 2020-2022 C. Augusto Proiete & Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5739617..a88d446 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

Cake.MinVer

-Cross-platform addin for the [Cake](https://cakebuild.net) build automation system that enables you to use [MinVer](https://github.com/adamralph/minver) for versioning projects using Git tags. Cake.MinVer targets the .NET Standard 2.0 and runs on Windows, Linux, and macOS. +Cross-platform addin for the [Cake](https://cakebuild.net) build automation system that enables you to use [MinVer](https://github.com/adamralph/minver) for versioning projects using Git tags. The latest version of Cake.MinVer targets .NET 7.0 and .NET 6.0, and runs on Windows, Linux, and macOS. [![NuGet Version](https://img.shields.io/nuget/v/Cake.MinVer.svg?color=blue&style=flat-square)](https://www.nuget.org/packages/Cake.MinVer/) [![Stack Overflow](https://img.shields.io/badge/stack%20overflow-cakebuild-orange.svg?style=flat-square)](http://stackoverflow.com/questions/tagged/cakebuild) @@ -31,7 +31,7 @@ This addin exposes the functionality of [MinVer](https://github.com/adamralph/mi First of all, you need to import Cake.MinVer in your build script by using the [`addin`](http://cakebuild.net/docs/fundamentals/preprocessor-directives) directive: ```csharp -#addin "nuget:?package=Cake.MinVer&version=2.0.0" +#addin "nuget:?package=Cake.MinVer&version=3.0.0" ``` _Make sure the `&version=` attribute references the [latest version of Cake.MinVer](https://www.nuget.org/packages/Cake.MinVer/) compatible with the Cake runner that you are using. Check the [compatibility table](#compatibility) to see which version of Cake.MinVer to choose_. @@ -39,7 +39,7 @@ _Make sure the `&version=` attribute references the [latest version of Cake.MinV Next, call `MinVer()` in order to get the version information using the default settings: ```csharp -#addin "nuget:?package=Cake.MinVer&version=2.0.0" +#addin "nuget:?package=Cake.MinVer&version=3.0.0" var version = MinVer(); @@ -173,7 +173,8 @@ Cake.MinVer is compatible with all [Cake runners](https://cakebuild.net/docs/run | Cake runner | Cake.MinVer | Cake addin directive | |:---------------:|:-----------------:| --------------------------------------------------- | -| 2.0.0 or higher | 2.0.0 or higher | `#addin "nuget:?package=Cake.MinVer&version=2.0.0"` | +| 3.0.0 or higher | 3.0.0 or higher | `#addin "nuget:?package=Cake.MinVer&version=3.0.0"` | +| 2.0.0 - 2.3.0 | 2.0.0 | `#addin "nuget:?package=Cake.MinVer&version=2.0.0"` | | 1.0.0 - 1.3.0 | 1.0.0 - 1.0.1 | `#addin "nuget:?package=Cake.MinVer&version=1.0.1"` | | 0.33.0 - 0.38.5 | 0.2.0 | `#addin "nuget:?package=Cake.MinVer&version=0.2.0"` | | < 0.33.0 | _N/A_ | _(not supported)_ | diff --git a/global.json b/global.json index cb771af..2c23bfe 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { "allowPrerelease": false, - "version": "6.0.100", + "version": "7.0.100", "rollForward": "latestFeature" } } diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index 00ddcf3..4ac8773 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0 Cake.MinVer Cake.MinVer @@ -28,7 +28,7 @@ C. Augusto Proiete & Contributors augustoproiete.net Cake add-in that makes MinVer available as a tool in Cake. - Copyright 2020-2021 C. Augusto Proiete & Contributors - Provided under the MIT License + Copyright 2020-2022 C. Augusto Proiete & Contributors - Provided under the MIT License cake;minver;cake-addin;cake-build;cake-contrib;addin;script;build;cake-contrib;augustoproiete;augusto-proiete MIT images\icon.png @@ -40,8 +40,8 @@ - - + + diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index 95e13d0..640570d 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -1,14 +1,14 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0 false - - - + + +