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

io.dekorate.jib.config.JibBuildConfig Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.jib.config;

import io.dekorate.project.Project;
import io.dekorate.kubernetes.config.ConfigKey;
import io.dekorate.kubernetes.config.ImageConfiguration;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import io.sundr.builder.annotations.Buildable;

@Buildable(builderPackage = "io.dekorate.deps.kubernetes.api.builder") public class JibBuildConfig extends ImageConfiguration{

    private boolean enabled = true;
    private boolean dockerBuild = true;
    private String from = "openjdk:8-jdk";
    private boolean autoDeployEnabled = false;

    public JibBuildConfig(){
    }
    public JibBuildConfig(Project project,Map attributes,String registry,String group,String name,String version,String image,String dockerFile,boolean autoBuildEnabled,boolean autoPushEnabled,boolean enabled,boolean dockerBuild,String from,boolean autoDeployEnabled){
            super(project, attributes, registry, group, name, version, image, dockerFile, autoBuildEnabled, autoPushEnabled);
            this.enabled = enabled;
            this.dockerBuild = dockerBuild;
            this.from = from != null ? from : "openjdk:8-jdk";
            this.autoDeployEnabled = autoDeployEnabled;
    }

    public boolean isEnabled(){
            return this.enabled;
    }

    public boolean isDockerBuild(){
            return this.dockerBuild;
    }

    public String getFrom(){
            return this.from;
    }

    public boolean isAutoDeployEnabled(){
            return this.autoDeployEnabled;
    }

    public static JibBuildConfigBuilder newJibBuildConfigBuilder(){
            return new io.dekorate.jib.config.JibBuildConfigBuilder();
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy