-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3089 from arturcic/feature/cake-update
Update cake 2.2.0
- Loading branch information
Showing
18 changed files
with
71 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Include="Cake.Common" Version="2.1.0" /> | ||
<PackageReference Include="Cake.Common" Version="2.2.0" /> | ||
<PackageReference Include="Cake.Compression" Version="0.2.6" /> | ||
<PackageReference Include="Cake.Frosting" Version="2.1.0" /> | ||
<PackageReference Include="Cake.Frosting" Version="2.2.0" /> | ||
<PackageReference Include="Cake.Incubator" Version="7.0.0" /> | ||
<PackageReference Include="Cake.DotNetLocalTools.Module" Version="1.0.2" /> | ||
|
||
<PackageReference Include="Cake.Docker" Version="1.1.1" /> | ||
<PackageReference Include="Cake.Docker" Version="1.1.2" /> | ||
|
||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
using Artifacts; | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
using Build; | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.InstallNugetTool(Tools.NugetCmd, Tools.Versions[Tools.NugetCmd]) | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Cake.DotNetLocalTools.Module; | ||
|
||
namespace Common.Utilities; | ||
|
||
public static class ServicesExtensions | ||
{ | ||
public static CakeHost UseRootDirectory(this CakeHost host) | ||
{ | ||
host = host.ConfigureServices(services => services.UseWorkingDirectory(Extensions.GetRootDirectory())); | ||
return host; | ||
} | ||
|
||
public static CakeHost InstallToolsFromRootManifest(this CakeHost host) | ||
{ | ||
host = host.UseModule<LocalToolsModule>().InstallToolsFromManifest(Extensions.GetRootDirectory().CombineWithFilePath("dotnet-tools.json").FullPath); | ||
return host; | ||
} | ||
|
||
public static CakeHost InstallNugetTool(this CakeHost host, string toolName, string toolVersion) | ||
{ | ||
var toolUrl = new Uri($"nuget:?package={toolName}&version={toolVersion}"); | ||
return host.ConfigureServices(services => services.UseTool(toolUrl)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
using Docker; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
using Docs; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
using Publish; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
using Common.Lifetime; | ||
using Common.Utilities; | ||
using Release; | ||
|
||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.UseStartup<Startup>() | ||
.UseLifetime<BuildLifetime>() | ||
.UseTaskLifetime<BuildTaskLifetime>() | ||
.UseRootDirectory() | ||
.InstallToolsFromRootManifest() | ||
.Run(args); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters