Record Class WorkspaceRoot
java.lang.Object
java.lang.Record
network.ike.workspace.WorkspaceRoot
- Record Components:
groupId- the Maven groupId for the workspace root POMartifactId- the Maven artifactId (typically matches the workspace's directory name)version- the current version, typically ending in-SNAPSHOTbetween releases
The workspace root's published Maven coordinates.
Persisted under the workspace-root: block in
workspace.yaml (schema 1.1+), populated by
ws:scaffold-init -Dgroup=... (ike-issues#183). Provides a single
source of truth for the aggregator artifact's
GAV so downstream goals — ws:release-publish (#185),
ws:align-publish, site deploy (#186) — can reference the
workspace root by real
coordinates rather than the legacy local.aggregate:<name>:1.0.0-SNAPSHOT
placeholder.
The version field is a single-segment monotonic counter, not
semver — it represents \"the Nth release of this workspace manifest,\"
nothing more (per feedback_no_semver_assumption).
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceRoot(String groupId, String artifactId, String version) Creates an instance of aWorkspaceRootrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
WorkspaceRoot
Creates an instance of aWorkspaceRootrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord 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). -
groupId
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
-