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 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 a MavenBuild record class.
      Parameters:
      name - the value for the name record component
      description - the value for the description record component
      coordinate - the value for the coordinate record component
      packaging - the value for the packaging record component
      parentPom - the value for the parentPom record component
      annotationProcessorCombineAttribute - the value for the annotationProcessorCombineAttribute record component
      testAnnotationProcessorCombineAttribute - the value for the testAnnotationProcessorCombineAttribute record component
      testAnnotationProcessors - the value for the testAnnotationProcessors record component
      annotationProcessors - the value for the annotationProcessors record component
      dependencies - the value for the dependencies record component
      plugins - the value for the plugins record component
      properties - the value for the properties record component
      profiles - the value for the profiles record component
      repositories - the value for the repositories record component
  • 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