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

com.atlassian.maven.plugins.jgitflow.extension.ProductionBranchCreatingPluginExtension Maven / Gradle / Ivy

There is a newer version: 1.0-m5.1
Show newest version
package com.atlassian.maven.plugins.jgitflow.extension;

import com.atlassian.jgitflow.core.extension.impl.EmptyBranchCreatingExtension;
import com.atlassian.maven.jgitflow.api.MavenJGitFlowExtension;
import com.atlassian.maven.plugins.jgitflow.extension.command.CacheVersionsCommand;
import com.atlassian.maven.plugins.jgitflow.extension.command.UpdatePomsWithSnapshotsCommand;
import com.atlassian.maven.plugins.jgitflow.extension.command.external.StartProductionExternalExecutor;

import org.codehaus.plexus.component.annotations.Requirement;

public abstract class ProductionBranchCreatingPluginExtension extends EmptyBranchCreatingExtension implements ExternalInitializingExtension
{
    @Requirement
    protected UpdatePomsWithSnapshotsCommand updatePomsWithSnapshotCommand;

    @Requirement
    protected CacheVersionsCommand cacheVersionsCommand;

    @Requirement
    protected StartProductionExternalExecutor productionExecutor;

    @Override
    public void init(MavenJGitFlowExtension externalExtension)
    {
        productionExecutor.init(externalExtension);

        addAfterCreateBranchCommands(
                cacheVersionsCommand
                , updatePomsWithSnapshotCommand
                , productionExecutor
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy