Easily access Gradle setup and install commands

Problem to solve

To make it easier for Gradle users it would be great if you could also choose to show the details for Gradle setup in the package details.

Here's an example how maven central does this:

search.maven.org

image

A possible solution could be to introduce some tabs or a dropdown (with the choices: Apache Maven, Gradle Groovy DSL, Gradle Kotlin DSL) here:

GitLab package setup info

image

Another thing to consider there is that it might be smart to remember what the user had selected last time to reduce the amount of clicks needed.

Other registries providing the feature:

Some references/examples:

If specific examples/templates (for example for the docs or for the package details) are needed, I can probably provide those

Proposal

Create a dropdown control that allows users to select which set of commands will be visible in the package detail UI.

Design proposal
Screen_Shot_2021-02-08_at_14.28.40

Further Details

  • This setting should be saved per user across all projects. This would mean that if a user selects gradle, the next time they look at a Maven package, the gradle instruction options should be shown by default.
  • We should continue to show the command even if a package format only has 1 option currently for consistency.
Edited by Tim Rizzi