Interface SkillSource
- All Known Implementing Classes:
GradlePluginCoordinate,ModuleCoordinate
Common identity contract for anything a resolved skill folder can be generated from: a Maven
dependency (
ModuleCoordinate) or a Gradle plugin applied via plugins {}
(GradlePluginCoordinate).
Implementations supply the same tiered-naming methods SkillNameAssigner escalates
through, so dependency- and plugin-sourced candidates can share a single collision-detection
pass and land in one shared skill-folder namespace.
-
Method Summary
Modifier and TypeMethodDescriptionShortest, most readable candidate skill name — the first tierSkillNameAssignertries.describe()Human-readable identity for logging (a GAV string, orplugin:<id>).finalizeSkillName(String normalizedKey) Applies the length-limit and deterministic hash-suffix rule to an already-normalized candidate key.Fallback candidate skill name used only whenartifactNameKey()collides with another source in the same run.Final, maximally-qualified skill name, used only whengroupArtifactNameKey()also collides.
-
Method Details
-
artifactNameKey
String artifactNameKey()Shortest, most readable candidate skill name — the first tierSkillNameAssignertries.- Returns:
- normalized, untruncated candidate key
-
groupArtifactNameKey
String groupArtifactNameKey()Fallback candidate skill name used only whenartifactNameKey()collides with another source in the same run.- Returns:
- normalized, untruncated candidate key
-
skillName
String skillName()Final, maximally-qualified skill name, used only whengroupArtifactNameKey()also collides. Already finalized (length-limited with a hash suffix if needed).- Returns:
- skill-folder-compatible name
-
finalizeSkillName
Applies the length-limit and deterministic hash-suffix rule to an already-normalized candidate key.- Parameters:
normalizedKey- a normalized candidate key- Returns:
- skill-folder-compatible name, truncated with a hash suffix if needed
-
describe
String describe()Human-readable identity for logging (a GAV string, orplugin:<id>).- Returns:
- display string
-