Class Profile
java.lang.Object
io.micronaut.projectgen.core.buildtools.maven.Profile
Represents a Maven profile.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActivationProperties
(@Nullable Set<Property> activationProperties) Adds the specified activation properties to the existing set.void
addDependencies
(@Nullable Set<Dependency> dependencies) Adds the specified dependencies to the existing set.static Profile.Builder
builder()
boolean
@Nullable Set<Dependency>
@Nullable Writable
Returns the extension used in the build plugin, if any.@NonNull String
getId()
int
hashCode()
-
Constructor Details
-
Profile
-
-
Method Details
-
getId
- Returns:
- Profile ID
-
getExtension
Returns the extension used in the build plugin, if any.- Returns:
- the extension or
null
if not set
-
getActivationProperties
- Returns:
- Activation properties
-
getDependencies
- Returns:
- Dependencies
-
equals
-
hashCode
public int hashCode() -
builder
-
addActivationProperties
Adds the specified activation properties to the existing set. If the current set isnull
, it will be initialized.- Parameters:
activationProperties
- the activation properties to add, ornull
-
addDependencies
Adds the specified dependencies to the existing set. If the current set isnull
, it will be initialized.- Parameters:
dependencies
- the dependencies to add, ornull
-