Cake.Liquibase
0.1.13
dotnet add package Cake.Liquibase --version 0.1.13
NuGet\Install-Package Cake.Liquibase -Version 0.1.13
<PackageReference Include="Cake.Liquibase" Version="0.1.13" />
paket add Cake.Liquibase --version 0.1.13
#r "nuget: Cake.Liquibase, 0.1.13"
// Install Cake.Liquibase as a Cake Addin #addin nuget:?package=Cake.Liquibase&version=0.1.13 // Install Cake.Liquibase as a Cake Tool #tool nuget:?package=Cake.Liquibase&version=0.1.13
Cake.Liquibase
Addin for running liquibase database migrations with the Cake build system.
Dependencies
Please note that neither the required Java Runtime Environment (JRE) nor the liquibase executables are provided with this addin and need to be provided separately.
NuGet package
As of now there is only a preview NuGet package available. An official one will be created as soon as I'm satisfied with the code to release a first version.
Usage
#addin "Cake.Liquibase"
var target = Argument("target", "Default");
Task("Default")
.Does(() => {
// Install Liquibase.Cli package for the liquibase executables (or include it in the packages.config)
NuGetInstall("Liquibase.Cli", new NuGetInstallSettings {
Version = "3.3.5",
OutputDirectory = "./tools"
});
UpdateDatabase(s => {
s.ChangeLogFile = "YourChangeLog.xml";
s.Url = "jdbc:sqlite:exampledb.sqlite";
s.JavaSettings.Classpaths.Add("./sqlite-jdbc-3.20.0.jar"); // additional drivers / jar files
});
});
RunTarget(target);
When not specifying a java executable the PATH is searched for "java" and it is used when found.
Limitations
This is currently an early stage of the addin. As of now only the liquibase "update" command is supported. The most important settings can be used via the LiquibaseSettings class. If you are missing settings, you can use the LiquibaseSettings.ArgumentCustomization property to define them as string. Details on how to use them can be found on the Cake website (ToolSettings).
If you are missing a command or parameter feel free to send a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.13 | 800 | 12/5/2023 |
0.1.13-preview | 2,354 | 12/6/2021 |
0.1.12-preview | 655 | 9/8/2021 |
0.1.11-preview | 3,995 | 1/27/2020 |
0.1.10-preview | 748 | 10/16/2019 |
0.1.9-preview | 367 | 10/16/2019 |
0.1.8-preview | 1,376 | 5/7/2019 |
0.1.7-preview | 2,026 | 6/7/2018 |
0.1.6-preview | 821 | 4/17/2018 |
0.1.5-preview | 823 | 10/6/2017 |
0.1.4-preview | 828 | 9/18/2017 |
0.1.3-preview | 814 | 9/12/2017 |
0.1.2-preview | 840 | 9/12/2017 |
0.1.1-preview | 820 | 9/11/2017 |
0.1.0-preview | 710 | 9/11/2017 |