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 Summary
ConstructorsConstructorDescriptionGradleBuild
(Coordinate coordinate, GradleDsl dsl, List<GradleDependency> dependencies, List<GradlePlugin> plugins, List<GradleRepository> repositories) Creates an instance of aGradleBuild
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinate
record component.Returns the value of thedependencies
record component.dsl()
Returns the value of thedsl
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull List<GradlePlugin>
@NonNull List<GradlePlugin>
final int
hashCode()
Returns a hash code value for this object.plugins()
Returns the value of theplugins
record component.@NonNull String
@NonNull String
@NonNull String
@NonNull String
@NonNull String
Returns the value of therepositories
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GradleBuild
public GradleBuild(Coordinate coordinate, GradleDsl dsl, List<GradleDependency> dependencies, List<GradlePlugin> plugins, List<GradleRepository> repositories) Creates an instance of aGradleBuild
record class.- Parameters:
coordinate
- the value for thecoordinate
record componentdsl
- the value for thedsl
record componentdependencies
- the value for thedependencies
record componentplugins
- the value for theplugins
record componentrepositories
- the value for therepositories
record component
-
-
Method Details
-
getPlugins
- Returns:
- Plugins
-
getSettingsImports
- Returns:
- Settings Imports
-
getSettingsPlugins
- Returns:
- Settings Plugins
-
renderSubstitutions
- Returns:
- substitutions rendered
-
renderExtensions
- Returns:
- extensions rendered
-
renderSettingsExtensions
- Returns:
- settings extensions rendered
-
getSettingsExtensions
-
renderRepositories
- Returns:
- repositories rendered
-
renderSettingsPluginsManagement
- Returns:
- settings plugins management rendered
-
getPluginsManagementRepositories
-
getPluginsImports
- Returns:
- plugins imports
-
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)
. -
coordinate
Returns the value of thecoordinate
record component.- Returns:
- the value of the
coordinate
record component
-
dsl
Returns the value of thedsl
record component.- Returns:
- the value of the
dsl
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
-
repositories
Returns the value of therepositories
record component.- Returns:
- the value of the
repositories
record component
-