Skip to content

Fix: New Maven provider: Clojars#1557

Open
shahyashish wants to merge 1 commit intoclearlydefined:masterfrom
shahyashish:gitfix-patch-1316-1776220631874
Open

Fix: New Maven provider: Clojars#1557
shahyashish wants to merge 1 commit intoclearlydefined:masterfrom
shahyashish:gitfix-patch-1316-1776220631874

Conversation

@shahyashish
Copy link
Copy Markdown

Fixed by GitFix AI Agent.

I have added 'clojars' to the toLowerCaseMap with the NAMESPACE | NAME bitwise flags. This ensures that coordinates for artifacts from the Clojars repository are correctly normalized to lowercase for both the namespace (groupId) and name (artifactId), which is the standard behavior for Maven-compatible providers in the ClearlyDefined ecosystem where case-insensitivity is common for lookups.

Test: Verify by creating a new EntityCoordinates instance: new EntityCoordinates('maven', 'Clojars', 'Org.Clojure', 'Clojure', '1.10.1'). The resulting instance should have: 1. provider set to 'clojars' (lowercase), 2. namespace set to 'org.clojure' (lowercase), 3. name set to 'clojure' (lowercase). Finally, calling toString() should produce 'maven/clojars/org.clojure/clojure/1.10.1'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant