com.dkanejs.maven.plugins.docker.compose.DockerComposePushMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-compose-maven-plugin Show documentation
Show all versions of docker-compose-maven-plugin Show documentation
Maven plugin for docker-compose
package com.dkanejs.maven.plugins.docker.compose;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import java.util.ArrayList;
import java.util.List;
/**
* docker-compose build
*/
@SuppressWarnings("unused")
@Mojo(name = "push", threadSafe = true)
public class DockerComposePushMojo extends AbstractDockerComposeMojo {
public void execute() throws MojoExecutionException {
if (skip) {
getLog().info("Skipping execution");
return;
}
final List args = new ArrayList<>();
args.add(Command.PUSH.getValue());
if (services != null && !services.isEmpty()) {
args.addAll(services);
}
super.execute(args);
}
}