Record Class MavenConfigurator
java.lang.Object
java.lang.Record
dev.ftb.plugins.ashwing.extension.publishing.MavenConfigurator
public record MavenConfigurator(org.gradle.api.Project project, AshwingExtension ashwingExtension)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMavenConfigurator(org.gradle.api.Project project, AshwingExtension ashwingExtension) Creates an instance of aMavenConfiguratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyMavenPublications(org.gradle.api.Project theProject, AshwingPublishingExtension ashwingPublishing) Returns the value of theashwingExtensionrecord component.voidSetups the FTB Maven as a publishing target.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.gradle.api.Projectproject()Returns the value of theprojectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MavenConfigurator
Creates an instance of aMavenConfiguratorrecord class.- Parameters:
project- the value for theprojectrecord componentashwingExtension- the value for theashwingExtensionrecord component
-
-
Method Details
-
configure
public void configure()Setups the FTB Maven as a publishing target. -
applyMavenPublications
public void applyMavenPublications(org.gradle.api.Project theProject, AshwingPublishingExtension ashwingPublishing) -
toString
-
hashCode
-
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). -
project
public org.gradle.api.Project project()Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
ashwingExtension
Returns the value of theashwingExtensionrecord component.- Returns:
- the value of the
ashwingExtensionrecord component
-