Record Class MavenBuild

java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.buildtools.maven.MavenBuild
Record Components:
name - Name
description - description
coordinate - coordinate
packaging - packaging
parentPom - Parent Pom
annotationProcessorCombineAttribute - Annotation Processor combine attribute
testAnnotationProcessorCombineAttribute - Test Annotation Processor combine attribute
testAnnotationProcessors - Test annotation processors
annotationProcessors - annotation processors
dependencies - Dependencies
plugins - Plugins
properties - properties
profiles - profiles
repositories - 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 Details

  • Method Details

    • renderRepositories

      @NonNull public @NonNull String renderRepositories(int indentationSpaces)
      Parameters:
      indentationSpaces - Indentation Spaces
      Returns:
      rendered string
    • renderPlugins

      @NonNull public @NonNull String renderPlugins(int indentationSpaces)
      Parameters:
      indentationSpaces - Indentation Spaces
      Returns:
      rendered string
    • renderProfiles

      @NonNull public @NonNull String renderProfiles(int indentationSpaces)
      Parameters:
      indentationSpaces - Indentation Spaces
      Returns:
      rendered string
    • getDependencies

      @NonNull public @NonNull List<MavenDependency> getDependencies(boolean pom)
      Parameters:
      pom - pom
      Returns:
      Dependencies
    • hasPomDependency

      public boolean hasPomDependency()
      Returns:
      Has Pom dependencies
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • coordinate

      public Coordinate coordinate()
      Returns the value of the coordinate record component.
      Returns:
      the value of the coordinate record component
    • packaging

      @Nullable public @Nullable String packaging()
      Returns the value of the packaging record component.
      Returns:
      the value of the packaging record component
    • parentPom

      public ParentPom parentPom()
      Returns the value of the parentPom record component.
      Returns:
      the value of the parentPom record component
    • annotationProcessorCombineAttribute

      public MavenCombineAttribute annotationProcessorCombineAttribute()
      Returns the value of the annotationProcessorCombineAttribute record component.
      Returns:
      the value of the annotationProcessorCombineAttribute record component
    • testAnnotationProcessorCombineAttribute

      public MavenCombineAttribute testAnnotationProcessorCombineAttribute()
      Returns the value of the testAnnotationProcessorCombineAttribute record component.
      Returns:
      the value of the testAnnotationProcessorCombineAttribute record component
    • testAnnotationProcessors

      public List<DependencyCoordinate> testAnnotationProcessors()
      Returns the value of the testAnnotationProcessors record component.
      Returns:
      the value of the testAnnotationProcessors record component
    • annotationProcessors

      public List<DependencyCoordinate> annotationProcessors()
      Returns the value of the annotationProcessors record component.
      Returns:
      the value of the annotationProcessors record component
    • dependencies

      public List<MavenDependency> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • plugins

      public List<MavenPlugin> plugins()
      Returns the value of the plugins record component.
      Returns:
      the value of the plugins record component
    • properties

      public List<Property> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • profiles

      public Collection<Profile> profiles()
      Returns the value of the profiles record component.
      Returns:
      the value of the profiles record component
    • repositories

      public List<MavenRepository> repositories()
      Returns the value of the repositories record component.
      Returns:
      the value of the repositories record component