Skip to content

Support raw Gradle repository names in the UI repository snippet card #2169

@sylv256

Description

@sylv256

What happened?

When setting the Reposilite Frontend's Maven ID, it automatically uncapitalizes the first character as seen below:

maven {
    name = "muonMC"
    url = uri("https://maven.muonmc.org/<repository>")
}

This is undesirable behavior for a professional setting as the capitalization denotes it is a proper noun.
Here is the Maven configuration for context:

<repository>
  <id>MuonMC</id>
  <name>MuonMC Maven Repository</name>
  <url>https://maven.muonmc.org/<repository></url>
</repository>

Another side-effect is that the copy feature does not include the Maven ID.

maven {
    url = uri("https://maven.muonmc.org/<repository>")
}

Finally, my biggest gripe with this feature is that it includes the repository name in the Maven ID.

maven {
    name = "muonMCReleases"
    url = uri("https://maven.muonmc.org/releases")
}

Reposilite version

3.x

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    cosmeticIssue is not harmful and affects only cosmatic part of a projectenhancementImprovement of existing feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions