Skip to content

Commit

Permalink
Merge branch 'release/0.18.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Mar 24, 2019
2 parents 4834eea + 9bda168 commit fe74c79
Show file tree
Hide file tree
Showing 264 changed files with 6,758 additions and 559 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [vNext]

## [0.18.0] / 2019-03-24
- Changed `ParameterService` to strip dashes when resolving value
- Changed formatting of skip reason
- Added `CompressionTasks`
- Added `EntityFrameworkTasks`
- Fixed `UnityTasks.UnityPath` for Windows
- Fixed `SystemColorOutputSink` to print warning and error details
- Fixed `SonarScannerTasks` to also resolve from netstandard package

## [0.17.7] / 2019-03-12
- Fixed `SystemColorOutputSink` to set `ForegroundColor`

Expand Down Expand Up @@ -330,7 +339,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added CLT tasks for Git
- Fixed background color in console output

[vNext]: https://github.com/nuke-build/common/compare/0.17.7...HEAD
[vNext]: https://github.com/nuke-build/common/compare/0.18.0...HEAD
[0.18.0]: https://github.com/nuke-build/common/compare/0.17.7...0.18.0
[0.17.7]: https://github.com/nuke-build/common/compare/0.17.6...0.17.7
[0.17.6]: https://github.com/nuke-build/common/compare/0.17.5...0.17.6
[0.17.5]: https://github.com/nuke-build/common/compare/0.17.4...0.17.5
Expand Down
2 changes: 1 addition & 1 deletion build/Build.CodeGeneration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Maintainers of NUKE.
// Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE

Expand Down
8 changes: 4 additions & 4 deletions build/Build.GitFlow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Matthias Koch, Sebastian Karasek 2018.
// Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE

Expand All @@ -25,7 +25,7 @@ partial class Build
Git($"add {ChangelogFile}");
Git($"commit -m \"Finalize {Path.GetFileName(ChangelogFile)} for {GitVersion.MajorMinorPatch}\"");
});

Target Release => _ => _
.DependsOn(Changelog)
.Requires(() => !GitRepository.IsOnReleaseBranch() || GitHasCleanWorkingCopy())
Expand Down Expand Up @@ -58,10 +58,10 @@ void FinishReleaseOrHotfix()
Git($"checkout {MasterBranch}");
Git($"merge --no-ff --no-edit {GitRepository.Branch}");
Git($"tag {GitVersion.MajorMinorPatch}");

Git($"checkout {DevelopBranch}");
Git($"merge --no-ff --no-edit {GitRepository.Branch}");

Git($"branch -D {GitRepository.Branch}");

Git($"push origin {MasterBranch} {DevelopBranch} {GitVersion.MajorMinorPatch}");
Expand Down
4 changes: 2 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Maintainers of NUKE.
// Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE

Expand Down Expand Up @@ -35,7 +35,7 @@
partial class Build : NukeBuild
{
public static int Main() => Execute<Build>(x => x.Pack);

[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;

Expand Down
2 changes: 1 addition & 1 deletion build/specifications/CoverallsNet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"officialUrl": "https://coverallsnet.readthedocs.io",
"help": "Coveralls uploader for .Net Code coverage of your C# source code. Should work with any code files that get reported with the supported coverage tools, but the primary focus is CSharp.",
"packageId": "coveralls.net",
"packageExecutable": "csmacnz.Coveralls.exe",
"packageExecutable": "csmacnz.Coveralls.dll",
"tasks": [
{
"settingsClass": {
Expand Down
272 changes: 272 additions & 0 deletions build/specifications/EntityFramework.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
{
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json",
"references": [
"https://raw.githubusercontent.com/aspnet/EntityFramework.Docs/master/entity-framework/core/miscellaneous/cli/dotnet.md"
],
"name": "EntityFramework",
"officialUrl": "https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet",
"help": "The command-line interface (CLI) tools for Entity Framework Core perform design-time development tasks. For example, they create migrations, apply <a href=\"https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations?view=aspnetcore-2.0#introduction-to-migrations\">migrations</a>, and generate code for a model based on an existing database. The commands are an extension to the cross-platform <a href=\"https://docs.microsoft.com/en-us/dotnet/core/tools\">dotnet</a> command, which is part of the <a href=\"https://www.microsoft.com/net/core\">.NET Core SDK</a>. These tools work with .NET Core projects.<para/>If you're using Visual Studio, we recommend the <a href=\"https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell\">Package Manager Console tools</a> instead:<para/><ul><li>They automatically work with the current project selected in the Package Manager Console without requiring that you manually switch directories.</li><li>They automatically open files generated by a command after the command is completed.</li></ul>",
"pathExecutable": "dotnet",
"tasks": [
{
"help": "The <c>dotnet ef database drop</c> command is used to drop the database.",
"postfix": "DatabaseDrop",
"definiteArgument": "ef database drop",
"settingsClass": {
"properties": [
{
"name": "Force",
"type": "bool",
"format": "--force",
"help": "Don't confirm."
},
{
"name": "DryRun",
"type": "bool",
"format": "--dry-run",
"help": "Show which database would be dropped, but don't drop it."
}
]
}
},
{
"help": "The <c>dotnet ef database update</c> command is used to update the database to the last migration or to a specified migration.",
"postfix": "DatabaseUpdate",
"definiteArgument": "ef database update",
"settingsClass": {
"properties": [
{
"name": "Migration",
"type": "string",
"format": "{value}",
"help": "The target migration. Migrations may be identified by name or by ID. The number 0 is a special case that means before the first migration and causes all migrations to be reverted. If no migration is specified, the command defaults to the last migration."
},
{
"name": "DryRun",
"type": "bool",
"format": "--dry-run",
"help": "This option shows which database would be dropped, but doesn't drop it."
}
]
}
},
{
"help": "The <c>dotnet ef dbcontext info</c> command is used to get information about a <c>DbContext</c> type.",
"postfix": "DbContextInfo",
"definiteArgument": "ef dbcontext info",
"settingsClass": {}
},
{
"help": "The <c>dotnet ef dbcontext list</c> command is used to list available <c>DbContext</c> types.",
"postfix": "DbContextList",
"definiteArgument": "ef dbcontext list",
"settingsClass": {}
},
{
"help": "The <c>dotnet ef dbcontext scaffold</c> command is used to generate code for a <c>DbContext</c> and entity types for a database. In order for this command to generate an entity type, the database table must have a primary key.",
"postfix": "DbContextScaffold",
"definiteArgument": "ef dbcontext scaffold",
"settingsClass": {
"properties": [
{
"name": "Connection",
"type": "string",
"format": "{value}",
"help": "The connection string to the database. For ASP.NET Core 2.x projects, the value can be <em>name=&lt;name of connection string&gt;</em>. In that case the name comes from the configuration sources that are set up for the project."
},
{
"name": "Provider",
"type": "string",
"format": "{value}",
"help": "The provider to use. Typically this is the name of the NuGet package, for example: <c>Microsoft.EntityFrameworkCore.SqlServer.</c>"
},
{
"name": "DataAnnotations",
"type": "bool",
"format": "--data-annotations",
"help": "Use attributes to configure the model (where possible). If this option is omitted, only the fluent API is used."
},
{
"name": "Context",
"type": "string",
"format": "--context {value}",
"help": "The name of the <c>DbContext</c> class to generate."
},
{
"name": "ContextDirectory",
"type": "string",
"format": "--context-dir {value}",
"help": "The directory to put the <c>DbContext</c> class file in. Paths are relative to the project directory. Namespaces are derived from the folder names."
},
{
"name": "Force",
"type": "bool",
"format": "--force",
"help": "Overwrite existing files."
},
{
"name": "OutputDirectory",
"type": "string",
"format": "--output-dir {value}",
"help": "The directory to put entity class files in. Paths are relative to the project directory."
},
{
"name": "Schemas",
"type": "List<string>",
"format": "--schema {value}",
"help": "The schemas of tables to generate entity types for. To specify multiple schemas, repeat <c>--schema</c> for each one. If this option is omitted, all schemas are included."
},
{
"name": "Tables",
"type": "List<string>",
"format": "--table {value}",
"help": "The tables to generate entity types for. To specify multiple tables, repeat <c>-t</c> or <c>--table</c> for each one. If this option is omitted, all tables are included."
},
{
"name": "UseDatabaseNames",
"type": "bool",
"format": "--use-database-names",
"help": "Use table and column names exactly as they appear in the database. If this option is omitted, database names are changed to more closely conform to C# name style conventions."
}
]
}
},
{
"help": "The <c>dotnet ef migrations add</c> command is used to add a new migration.",
"postfix": "MigrationsAdd",
"definiteArgument": "ef migrations add",
"settingsClass": {
"properties": [
{
"name": "Name",
"type": "string",
"format": "{value}",
"help": "The name of the migration."
},
{
"name": "OutputDirectory",
"type": "string",
"format": "--output-dir {value}",
"help": "The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to 'Migrations'."
}
]
}
},
{
"help": "The <c>dotnet ef migrations list</c> command is used to list available migrations.",
"postfix": "MigrationsList",
"definiteArgument": "ef migrations list",
"settingsClass": {}
},
{
"help": "The <c>dotnet ef migrations remove</c> command is used to remove the last migration (rolls back the code changes that were done for the migration).",
"postfix": "MigrationsRemove",
"definiteArgument": "ef migrations remove",
"settingsClass": {
"properties": [
{
"name": "OutputDirectory",
"type": "string",
"format": "--output-dir {value}",
"help": "The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to 'Migrations'."
}
]
}
},
{
"help": "The <c>dotnet ef migrations script</c> command is used to generate a SQL script from migrations.",
"postfix": "MigrationsScript",
"definiteArgument": "ef migrations script",
"settingsClass": {
"properties": [
{
"name": "From",
"type": "string",
"format": "{value}",
"help": "The starting migration. Migrations may be identified by name or by ID. The number 0 is a special case that means <em>before the first migration</em>. Defaults to 0."
},
{
"name": "To",
"type": "string",
"format": "{value}",
"help": "The ending migration. Defaults to the last migration."
},
{
"name": "Output",
"type": "string",
"format": "--output {value}",
"help": "The file to write the script to."
},
{
"name": "Idempotent",
"type": "bool",
"format": "--idempotent",
"help": "Generate a script that can be used on a database at any migration."
}
]
}
}
],
"commonTaskProperties": [
{
"name": "Json",
"type": "bool",
"format": "--json",
"help": "Show JSON output."
},
{
"name": "Context",
"type": "string",
"format": "--context {value}",
"help": "The <c>DbContext</c> class to use. Class name only or fully qualified with namespaces. If this option is omitted, EF Core will find the context class. If there are multiple context classes, this option is required."
},
{
"name": "Project",
"type": "string",
"format": "--project {value}",
"help": "Relative path to the project folder of the target project. Default value is the current folder."
},
{
"name": "StartupProject",
"type": "string",
"format": "--startup-project {value}",
"help": "Relative path to the project folder of the startup project. Default value is the current folder."
},
{
"name": "Framework",
"type": "string",
"format": "--framework {value}",
"help": "The <a href=\"https://docs.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-framework-versions\">Target Framework Moniker</a> for the <a href=\"https://docs.microsoft.com/en-us/dotnet/standard/frameworks\">target framework</a>. Use when the project file specifies multiple target frameworks, and you want to select one of them."
},
{
"name": "Configuration",
"type": "string",
"format": "--configuration {value}",
"help": "The build configuration, for example: <c>Debug</c> or <c>Release.</c>"
},
{
"name": "Runtime",
"type": "string",
"format": "--runtime {value}",
"help": "The identifier of the target runtime to restore packages for. For a list of Runtime Identifiers (RIDs), see the <a href=\"https://docs.microsoft.com/en-us/dotnet/core/rid-catalog\">RID catalog</a>."
},
{
"name": "NoColor",
"type": "bool",
"format": "--no-color",
"help": "Don't colorize output."
},
{
"name": "PrefixOutput",
"type": "bool",
"format": "--prefix-output",
"help": "Prefix output with level."
},
{
"name": "Verbose",
"type": "bool",
"format": "--verbose",
"help": "Show verbose output."
}
]
}
2 changes: 2 additions & 0 deletions build/specifications/GitVersion.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"name": "GitVersion",
"officialUrl": "http://gitversion.readthedocs.io/en/stable/",
"help": "GitVersion is a tool to help you achieve Semantic Versioning on your project.",
"packageId": "GitVersion.CommandLine.DotNetCore|GitVersion.CommandLine",
"packageExecutable": "GitVersion.dll|GitVersion.exe",
"tasks": [
{
"returnType": "GitVersion",
Expand Down
4 changes: 2 additions & 2 deletions build/specifications/SonarScanner.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"name": "SonarScanner",
"officialUrl": "https://www.sonarqube.org/",
"help": "The SonarScanner for MSBuild is the recommended way to launch a SonarQube or SonarCloud analysis for projects/solutions using MSBuild or dotnet command as build tool.",
"packageId": "MSBuild.SonarQube.Runner.Tool",
"packageExecutable": "SonarScanner.MSBuild.exe",
"packageId": "dotnet-sonarscanner|MSBuild.SonarQube.Runner.Tool",
"packageExecutable": "SonarScanner.MSBuild.dll|SonarScanner.MSBuild.exe",
"tasks": [
{
"postfix": "Begin",
Expand Down
Loading

0 comments on commit fe74c79

Please sign in to comment.