@Experimental @Generated @ThreadSafe @Immutable public class Prerequisites extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Prerequisites.Builder
Builder class used to create Prerequisites instances.
|
Modifier and Type | Method and Description |
---|---|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getMaven()
For a plugin project (packaging is
maven-plugin ), the minimum version of
Maven required to use the resulting plugin.In Maven 2, this was also specifying the minimum version of Maven required to build a project, but this usage is deprecated in Maven 3 and not checked any more: use the Maven Enforcer Plugin's requireMavenVersion rule instead. |
static Prerequisites.Builder |
newBuilder()
Creates a new
Prerequisites builder instance. |
static Prerequisites.Builder |
newBuilder(boolean withDefaults)
Creates a new
Prerequisites builder instance using default values or not. |
static Prerequisites.Builder |
newBuilder(Prerequisites from)
Creates a new
Prerequisites builder instance using the specified object as a basis. |
static Prerequisites.Builder |
newBuilder(Prerequisites from,
boolean forceCopy)
Creates a new
Prerequisites builder instance using the specified object as a basis. |
static Prerequisites |
newInstance()
Creates a new
Prerequisites instance. |
static Prerequisites |
newInstance(boolean withDefaults)
Creates a new
Prerequisites instance using default values or not. |
Prerequisites.Builder |
with()
Creates a new builder with this object as the basis.
|
Prerequisites |
withMaven(String maven)
Creates a new
Prerequisites instance using the specified maven. |
public String getMaven()
maven-plugin
), the minimum version of
Maven required to use the resulting plugin.requireMavenVersion
rule instead.String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public Prerequisites.Builder with()
Builder
@Nonnull public Prerequisites withMaven(String maven)
Prerequisites
instance using the specified maven.maven
- the new String
to usePrerequisites
with the specified maven@Nonnull public static Prerequisites newInstance()
Prerequisites
instance.
Equivalent to newInstance( true )
.Prerequisites
newInstance(boolean)
@Nonnull public static Prerequisites newInstance(boolean withDefaults)
Prerequisites
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedPrerequisites
@Nonnull public static Prerequisites.Builder newBuilder()
Prerequisites
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Prerequisites.Builder newBuilder(boolean withDefaults)
Prerequisites
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Prerequisites.Builder newBuilder(Prerequisites from)
Prerequisites
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Prerequisites
instance to use as a basisBuilder
@Nonnull public static Prerequisites.Builder newBuilder(Prerequisites from, boolean forceCopy)
Prerequisites
builder instance using the specified object as a basis.from
- the Prerequisites
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.