Record Class GradleBuild

java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.buildtools.gradle.GradleBuild

@Builder public record GradleBuild(Coordinate coordinate, GradleDsl dsl, List<GradleDependency> dependencies, List<GradlePlugin> plugins, List<GradleRepository> repositories) extends Record
Representation of a Gradle Build.
  • Constructor Details

    • GradleBuild

      public GradleBuild(Coordinate coordinate, GradleDsl dsl, List<GradleDependency> dependencies, List<GradlePlugin> plugins, List<GradleRepository> repositories)
      Creates an instance of a GradleBuild record class.
      Parameters:
      coordinate - the value for the coordinate record component
      dsl - the value for the dsl record component
      dependencies - the value for the dependencies record component
      plugins - the value for the plugins record component
      repositories - the value for the repositories record component
  • Method Details

    • getPlugins

      @NonNull public @NonNull List<GradlePlugin> getPlugins()
      Returns:
      Plugins
    • getSettingsImports

      @NonNull public @NonNull List<String> getSettingsImports()
      Returns:
      Settings Imports
    • getSettingsPlugins

      @NonNull public @NonNull List<GradlePlugin> getSettingsPlugins()
      Returns:
      Settings Plugins
    • renderSubstitutions

      @NonNull public @NonNull String renderSubstitutions()
      Returns:
      substitutions rendered
    • renderExtensions

      @NonNull public @NonNull String renderExtensions()
      Returns:
      extensions rendered
    • renderSettingsExtensions

      @NonNull public @NonNull String renderSettingsExtensions()
      Returns:
      settings extensions rendered
    • getSettingsExtensions

      public List<Writable> getSettingsExtensions()
    • renderRepositories

      @NonNull public @NonNull String renderRepositories()
      Returns:
      repositories rendered
    • renderSettingsPluginsManagement

      @NonNull public @NonNull String renderSettingsPluginsManagement()
      Returns:
      settings plugins management rendered
    • getPluginsManagementRepositories

      public List<GradleRepository> getPluginsManagementRepositories()
    • getPluginsImports

      @NonNull public @NonNull Set<String> getPluginsImports()
      Returns:
      plugins imports
    • 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.
    • coordinate

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

      public GradleDsl dsl()
      Returns the value of the dsl record component.
      Returns:
      the value of the dsl record component
    • dependencies

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

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

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