Skip to content

Commit d29aa37

Browse files
committed
Merge branch 'release/0.10.0'
2 parents 3ddb8a8 + ce05ed1 commit d29aa37

File tree

95 files changed

+2325
-907
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2325
-907
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [vNext]
88

9+
## [0.10.0] / 2018-10-02
10+
- Removed `PathConstruction.GetRootRelativePath`
11+
- Removed `License` from specification files
12+
- Deprecated `NukeBuild.Configuration` which should belong to user-code
13+
- Deprecated plus operator in `PathConstruction.AbsolutePath` and `RelativePath`
14+
- Changed `SolutionAttribute` to resolve solution file via parameter
15+
- Changed CLI wrapper tasks to attempt to resolve tool paths from `[TOOL]_EXE` environment variable
16+
- Added `AbsolutePath.Parent` and equality members
17+
- Added `TypeConverter` for `AbsolutePath` which allows passing paths as parameter
18+
- Fixed detection of value types in specification files
19+
- Fixed path variable check to split by specific separator
20+
921
## [0.9.1] / 2018-09-26
1022
- Fixed wrong assertions in global tool
1123

@@ -144,7 +156,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
144156
- Added CLT tasks for Git
145157
- Fixed background color in console output
146158

147-
[vNext]: https://github.com/nuke-build/nuke/compare/0.9.1...HEAD
159+
[vNext]: https://github.com/nuke-build/nuke/compare/0.10.0...HEAD
160+
[0.10.0]: https://github.com/nuke-build/nuke/compare/0.9.1...0.10.0
148161
[0.9.1]: https://github.com/nuke-build/nuke/compare/0.9.0...0.9.1
149162
[0.9.0]: https://github.com/nuke-build/nuke/compare/0.8.0...0.9.0
150163
[0.8.0]: https://github.com/nuke-build/nuke/compare/0.7.0...0.8.0

build/Build.CodeGeneration.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
using static Nuke.CodeGeneration.CodeGenerator;
99
using static Nuke.CodeGeneration.ReferenceUpdater;
1010
using static Nuke.CodeGeneration.SchemaGenerator;
11-
using static Nuke.Common.EnvironmentInfo;
1211
using static Nuke.Common.IO.FileSystemTasks;
12+
using static Nuke.Common.IO.PathConstruction;
1313
using static Nuke.Common.Tools.Git.GitTasks;
1414

1515
partial class Build
1616
{
1717
string SpecificationsDirectory => BuildProjectDirectory / "specifications";
1818
string ReferencesDirectory => BuildProjectDirectory / "references";
19-
string GenerationDirectory => RootDirectory / "source" / "Nuke.Common" / "Tools";
19+
AbsolutePath GenerationDirectory => RootDirectory / "source" / "Nuke.Common" / "Tools";
2020
string ToolSchemaFile => SourceDirectory / "Nuke.CodeGeneration" / "schema.json";
2121

2222
Target References => _ => _
@@ -38,9 +38,8 @@ partial class Build
3838

3939
GenerateCode(
4040
SpecificationsDirectory,
41-
GenerationDirectory,
42-
baseNamespace: "Nuke.Common.Tools",
43-
useNestedNamespaces: true,
44-
gitRepository: GitRepository.SetBranch(MasterBranch));
41+
outputFileProvider: x => GenerationDirectory / x.Name / x.DefaultOutputFileName,
42+
namespaceProvider: x => $"Nuke.Common.Tools.{x.Name}",
43+
sourceFileProvider: x => GitRepository.SetBranch(MasterBranch).GetGitHubBrowseUrl(x.SpecificationFile));
4544
});
4645
}

build/Build.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
partial class Build : NukeBuild
3939
{
4040
public static int Main() => Execute<Build>(x => x.Pack);
41+
42+
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
43+
new readonly string Configuration = IsLocalBuild ? "Debug" : "Release";
4144

4245
[Parameter("ApiKey for the specified source.")] readonly string ApiKey;
4346
[Parameter] string Source = "https://api.nuget.org/v3/index.json";

build/specifications/CoverallsNet.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json",
3-
"license": [
4-
"Copyright 2018 Maintainers of NUKE.",
5-
"Distributed under the MIT License.",
6-
"https://github.com/nuke-build/tools/blob/master/LICENSE"
7-
],
83
"references": [
94
"https://raw.githubusercontent.com/csMACnz/coveralls.net/master/src/csmacnz.Coveralls/T4DocoptNet.cs"
105
],
@@ -135,4 +130,4 @@
135130
}
136131
}
137132
]
138-
}
133+
}

build/specifications/Coverlet.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json",
3-
"license": [
4-
"Copyright 2018 Maintainers of NUKE.",
5-
"Distributed under the MIT License.",
6-
"https://github.com/nuke-build/tools/blob/master/LICENSE"
7-
],
83
"references": [
94
"https://raw.githubusercontent.com/tonerdo/coverlet/master/README.md#global-tool"
105
],

build/specifications/DocFx.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json",
3-
"license": [
4-
"Copyright 2018 Maintainers of NUKE.",
5-
"Distributed under the MIT License.",
6-
"https://github.com/nuke-build/tools/blob/master/LICENSE"
7-
],
83
"references": [
94
"https://raw.githubusercontent.com/dotnet/docfx/dev/src/docfx/Models/MetadataCommandOptions.cs",
105
"https://raw.githubusercontent.com/dotnet/docfx/dev/src/docfx/Models/BuildCommandOptions.cs"
@@ -129,4 +124,4 @@
129124
]
130125
}
131126
]
132-
}
127+
}

build/specifications/DotCover.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json",
3-
"license": [
4-
"Copyright 2018 Maintainers of NUKE.",
5-
"Distributed under the MIT License.",
6-
"https://github.com/nuke-build/tools/blob/master/LICENSE"
7-
],
83
"references": [
94
"https://www.jetbrains.com/help/dotcover/dotCover__Console_Runner_Commands.html#//article[@class='article']"
105
],
@@ -306,4 +301,4 @@
306301
]
307302
}
308303
]
309-
}
304+
}

0 commit comments

Comments
 (0)