Package io.quarkus.maven
Enum ImageBuilder
- All Implemented Interfaces:
Serializable,Comparable<ImageBuilder>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getProjectBuilder(org.apache.maven.project.MavenProject project) Get teh image builder extensions found in the project.static ImageBuilderReturns 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 Details
-
docker
-
podman
-
jib
-
buildpack
-
openshift
-
-
Field Details
-
QUARKUS_PREFIX
- See Also:
-
QUARKUS_CONTAINER_IMAGE_PREFIX
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.
-
getProjectBuilder
Get teh image builder extensions found in the project.- Parameters:
the- project to search for extensions- Returns:
- A set with the discovered extensions.
-