All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liquibase.maven.plugins.LiquibaseHistoryMojo Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package org.liquibase.maven.plugins;

import liquibase.Liquibase;
import liquibase.command.CommandScope;
import liquibase.command.core.InternalHistoryCommandStep;
import liquibase.exception.LiquibaseException;

/**
 * 

Outputs history of deployments against the configured database.

* * @goal history */ public class LiquibaseHistoryMojo extends AbstractLiquibaseMojo { @Override protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException { CommandScope historyCommand = new CommandScope(InternalHistoryCommandStep.COMMAND_NAME); historyCommand.addArgumentValue(InternalHistoryCommandStep.DATABASE_ARG, getLiquibase().getDatabase()); historyCommand.execute(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy