Record Class MavenBuild
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.buildtools.maven.MavenBuild
- Record Components:
name- Namedescription- descriptioncoordinate- coordinatepackaging- packagingparentPom- Parent PomannotationProcessorCombineAttribute- Annotation Processor combine attributetestAnnotationProcessorCombineAttribute- Test Annotation Processor combine attributetestAnnotationProcessors- Test annotation processorsannotationProcessors- annotation processorsdependencies- Dependenciesplugins- Pluginsproperties- propertiesprofiles- profilesrepositories- repositories
@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 aMavenBuildrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationProcessorCombineAttributerecord component.Returns the value of theannotationProcessorsrecord component.Returns the value of thecoordinaterecord component.Returns the value of thedependenciesrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull List<MavenDependency>getDependencies(boolean pom) final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.@Nullable StringReturns the value of thepackagingrecord component.Returns the value of theparentPomrecord component.plugins()Returns the value of thepluginsrecord component.profiles()Returns the value of theprofilesrecord component.Returns the value of thepropertiesrecord component.@NonNull StringrenderPlugins(int indentationSpaces) @NonNull StringrenderProfiles(int indentationSpaces) @NonNull StringrenderRepositories(int indentationSpaces) Returns the value of therepositoriesrecord component.Returns the value of thetestAnnotationProcessorCombineAttributerecord component.Returns the value of thetestAnnotationProcessorsrecord component.final StringtoString()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 aMavenBuildrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcoordinate- the value for thecoordinaterecord componentpackaging- the value for thepackagingrecord componentparentPom- the value for theparentPomrecord componentannotationProcessorCombineAttribute- the value for theannotationProcessorCombineAttributerecord componenttestAnnotationProcessorCombineAttribute- the value for thetestAnnotationProcessorCombineAttributerecord componenttestAnnotationProcessors- the value for thetestAnnotationProcessorsrecord componentannotationProcessors- the value for theannotationProcessorsrecord componentdependencies- the value for thedependenciesrecord componentplugins- the value for thepluginsrecord componentproperties- the value for thepropertiesrecord componentprofiles- the value for theprofilesrecord componentrepositories- the value for therepositoriesrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
packaging
Returns the value of thepackagingrecord component.- Returns:
- the value of the
packagingrecord component
-
parentPom
Returns the value of theparentPomrecord component.- Returns:
- the value of the
parentPomrecord component
-
annotationProcessorCombineAttribute
Returns the value of theannotationProcessorCombineAttributerecord component.- Returns:
- the value of the
annotationProcessorCombineAttributerecord component
-
testAnnotationProcessorCombineAttribute
Returns the value of thetestAnnotationProcessorCombineAttributerecord component.- Returns:
- the value of the
testAnnotationProcessorCombineAttributerecord component
-
testAnnotationProcessors
Returns the value of thetestAnnotationProcessorsrecord component.- Returns:
- the value of the
testAnnotationProcessorsrecord component
-
annotationProcessors
Returns the value of theannotationProcessorsrecord component.- Returns:
- the value of the
annotationProcessorsrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
plugins
Returns the value of thepluginsrecord component.- Returns:
- the value of the
pluginsrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-
repositories
Returns the value of therepositoriesrecord component.- Returns:
- the value of the
repositoriesrecord component
-