Package io.quarkus.maven
Enum ImageBuilder
- java.lang.Object
-
- java.lang.Enum<ImageBuilder>
-
- io.quarkus.maven.ImageBuilder
-
- All Implemented Interfaces:
Serializable,Comparable<ImageBuilder>
public enum ImageBuilder extends Enum<ImageBuilder>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<ImageBuilder>getBuilder(String name, Collection<ImageBuilder> projectBuilders)Get the image builder by name or the first one found in the project.static Optional<ImageBuilder>getBuilder(String name, org.apache.maven.project.MavenProject project)Get the image builder by name or the first one found in the project.Optional<io.quarkus.maven.dependency.ArtifactDependency>getExtensionArtifact(org.apache.maven.project.MavenProject project)Get theArtifactDependencymatching the builder.static Set<String>getProjectBuilder(org.apache.maven.project.MavenProject project)Get teh image builder extensions found in the project.static ImageBuildervalueOf(String name)Returns the enum constant of this type with the specified name.static ImageBuilder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
docker
public static final ImageBuilder docker
-
jib
public static final ImageBuilder jib
-
buildpack
public static final ImageBuilder buildpack
-
openshift
public static final ImageBuilder openshift
-
-
Method Detail
-
values
public static ImageBuilder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageBuilder c : ImageBuilder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageBuilder valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getExtensionArtifact
public Optional<io.quarkus.maven.dependency.ArtifactDependency> getExtensionArtifact(org.apache.maven.project.MavenProject project)
Get theArtifactDependencymatching the builder.- Parameters:
project- the target project- Returns:
- the dependency wrapped in
Optional.
-
getBuilder
public static Optional<ImageBuilder> getBuilder(String name, org.apache.maven.project.MavenProject project)
Get the image builder by name or the first one found in the project.- Parameters:
name- the name of the builder.- Returns:
- the
Optionalbuilder matching the name, project.
-
getBuilder
public static Optional<ImageBuilder> getBuilder(String name, Collection<ImageBuilder> projectBuilders)
Get the image builder by name or the first one found in the project.- Parameters:
name- the name of the builder.- Returns:
- the
Optionalbuilder matching the name, project.
-
-