Record Class BomScm
java.lang.Object
java.lang.Record
network.ike.plugin.BomScm
- Record Components:
connection- read SCM connection URI; null omits the elementdeveloperConnection- write SCM connection URI; null omits the elementurl- browsable repository URL; null omits the elementtag- tag within the repository; null omits the element
public record BomScm(String connection, String developerConnection, String url, String tag)
extends Record
The SCM block for the generated BOM POM — Maven Central requires it
(IKE-Network/ike-issues#967).
Decouples BOM XML generation from Maven's Scm model so
the generation logic is testable with plain records.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionrecord component.Returns the value of thedeveloperConnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
BomScm
Creates an instance of aBomScmrecord class.- Parameters:
connection- the value for theconnectionrecord componentdeveloperConnection- the value for thedeveloperConnectionrecord componenturl- the value for theurlrecord componenttag- the value for thetagrecord component
-
-
Method Details
-
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). -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
developerConnection
Returns the value of thedeveloperConnectionrecord component.- Returns:
- the value of the
developerConnectionrecord component
-
url
-
tag
-