Cake.Liquibase 0.1.13

dotnet add package Cake.Liquibase --version 0.1.13                
NuGet\Install-Package Cake.Liquibase -Version 0.1.13                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Liquibase" Version="0.1.13" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Liquibase --version 0.1.13                
#r "nuget: Cake.Liquibase, 0.1.13"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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.

Build status

NuGet

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 929 12/5/2023
0.1.13-preview 2,356 12/6/2021
0.1.12-preview 657 9/8/2021
0.1.11-preview 3,997 1/27/2020
0.1.10-preview 750 10/16/2019
0.1.9-preview 369 10/16/2019
0.1.8-preview 1,378 5/7/2019
0.1.7-preview 2,030 6/7/2018
0.1.6-preview 825 4/17/2018
0.1.5-preview 827 10/6/2017
0.1.4-preview 832 9/18/2017
0.1.3-preview 818 9/12/2017
0.1.2-preview 844 9/12/2017
0.1.1-preview 824 9/11/2017
0.1.0-preview 714 9/11/2017