Record Class MavenBuild
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.buildtools.maven.MavenBuild
@Builder
public record MavenBuild(String name, String description, Coordinate coordinate, @Nullable String packaging, ParentPom parentPom, MavenCombineAttribute annotationProcessorCombineAttribute, MavenCombineAttribute testAnnotationProcessorCombineAttribute, List<DependencyCoordinate> testAnnotationProcessors, List<DependencyCoordinate> annotationProcessors, List<MavenDependency> dependencies, List<MavenPlugin> plugins, List<Property> properties, Collection<Profile> profiles, List<MavenRepository> repositories)
extends Record
Maven Build.
-
Constructor Summary
ConstructorsConstructorDescriptionMavenBuild
(String name, String description, Coordinate coordinate, @Nullable String packaging, ParentPom parentPom, MavenCombineAttribute annotationProcessorCombineAttribute, MavenCombineAttribute testAnnotationProcessorCombineAttribute, List<DependencyCoordinate> testAnnotationProcessors, List<DependencyCoordinate> annotationProcessors, List<MavenDependency> dependencies, List<MavenPlugin> plugins, List<Property> properties, Collection<Profile> profiles, List<MavenRepository> repositories) Creates an instance of aMavenBuild
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationProcessorCombineAttribute
record component.Returns the value of theannotationProcessors
record component.Returns the value of thecoordinate
record component.Returns the value of thedependencies
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull List<MavenDependency>
getDependencies
(boolean pom) final int
hashCode()
Returns a hash code value for this object.boolean
name()
Returns the value of thename
record component.@Nullable String
Returns the value of thepackaging
record component.Returns the value of theparentPom
record component.plugins()
Returns the value of theplugins
record component.profiles()
Returns the value of theprofiles
record component.Returns the value of theproperties
record component.@NonNull String
renderPlugins
(int indentationSpaces) @NonNull String
renderProfiles
(int indentationSpaces) @NonNull String
renderRepositories
(int indentationSpaces) Returns the value of therepositories
record component.Returns the value of thetestAnnotationProcessorCombineAttribute
record component.Returns the value of thetestAnnotationProcessors
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MavenBuild
public MavenBuild(String name, String description, Coordinate coordinate, @Nullable @Nullable String packaging, ParentPom parentPom, MavenCombineAttribute annotationProcessorCombineAttribute, MavenCombineAttribute testAnnotationProcessorCombineAttribute, List<DependencyCoordinate> testAnnotationProcessors, List<DependencyCoordinate> annotationProcessors, List<MavenDependency> dependencies, List<MavenPlugin> plugins, List<Property> properties, Collection<Profile> profiles, List<MavenRepository> repositories) Creates an instance of aMavenBuild
record class.- Parameters:
name
- the value for thename
record componentdescription
- the value for thedescription
record componentcoordinate
- the value for thecoordinate
record componentpackaging
- the value for thepackaging
record componentparentPom
- the value for theparentPom
record componentannotationProcessorCombineAttribute
- the value for theannotationProcessorCombineAttribute
record componenttestAnnotationProcessorCombineAttribute
- the value for thetestAnnotationProcessorCombineAttribute
record componenttestAnnotationProcessors
- the value for thetestAnnotationProcessors
record componentannotationProcessors
- the value for theannotationProcessors
record componentdependencies
- the value for thedependencies
record componentplugins
- the value for theplugins
record componentproperties
- the value for theproperties
record componentprofiles
- the value for theprofiles
record componentrepositories
- the value for therepositories
record component
-
-
Method Details
-
renderRepositories
- Parameters:
indentationSpaces
- Indentation Spaces- Returns:
- rendered string
-
renderPlugins
- Parameters:
indentationSpaces
- Indentation Spaces- Returns:
- rendered string
-
renderProfiles
- Parameters:
indentationSpaces
- Indentation Spaces- Returns:
- rendered string
-
getDependencies
- Parameters:
pom
- pom- Returns:
- Dependencies
-
hasPomDependency
public boolean hasPomDependency()- Returns:
- Has Pom dependencies
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
coordinate
Returns the value of thecoordinate
record component.- Returns:
- the value of the
coordinate
record component
-
packaging
Returns the value of thepackaging
record component.- Returns:
- the value of the
packaging
record component
-
parentPom
Returns the value of theparentPom
record component.- Returns:
- the value of the
parentPom
record component
-
annotationProcessorCombineAttribute
Returns the value of theannotationProcessorCombineAttribute
record component.- Returns:
- the value of the
annotationProcessorCombineAttribute
record component
-
testAnnotationProcessorCombineAttribute
Returns the value of thetestAnnotationProcessorCombineAttribute
record component.- Returns:
- the value of the
testAnnotationProcessorCombineAttribute
record component
-
testAnnotationProcessors
Returns the value of thetestAnnotationProcessors
record component.- Returns:
- the value of the
testAnnotationProcessors
record component
-
annotationProcessors
Returns the value of theannotationProcessors
record component.- Returns:
- the value of the
annotationProcessors
record component
-
dependencies
Returns the value of thedependencies
record component.- Returns:
- the value of the
dependencies
record component
-
plugins
Returns the value of theplugins
record component.- Returns:
- the value of the
plugins
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-
profiles
Returns the value of theprofiles
record component.- Returns:
- the value of the
profiles
record component
-
repositories
Returns the value of therepositories
record component.- Returns:
- the value of the
repositories
record component
-