Record Class GradleBuild
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.buildtools.gradle.GradleBuild
- Record Components:
coordinate- Coordinatedsl- Gradle DSLdependencies- dependenciesplugins- Pluginsrepositories- Repositories
@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 aGradleBuildrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoordinaterecord component.Returns the value of thedependenciesrecord component.dsl()Returns the value of thedslrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull List<GradlePlugin>@NonNull List<GradlePlugin>final inthashCode()Returns a hash code value for this object.plugins()Returns the value of thepluginsrecord component.@NonNull String@NonNull String@NonNull String@NonNull String@NonNull StringReturns the value of therepositoriesrecord component.final StringtoString()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 aGradleBuildrecord class.- Parameters:
coordinate- the value for thecoordinaterecord componentdsl- the value for thedslrecord componentdependencies- the value for thedependenciesrecord componentplugins- the value for thepluginsrecord componentrepositories- the value for therepositoriesrecord 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 thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-
dsl
Returns the value of thedslrecord component.- Returns:
- the value of the
dslrecord 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
-
repositories
Returns the value of therepositoriesrecord component.- Returns:
- the value of the
repositoriesrecord component
-