Skip to content

Standardize "Mavenization" for all Gradle Builds #151524

@lorenzleutgeb

Description

@lorenzleutgeb

When you search for "mavenize" (6 hits) or "mavenizes" (8 hits) in Nixpkgs you'll find duplicated code.

It's usually something like

find $GRADLE_USER_HOME/caches/modules-2 -type f -regex '.*\.\(jar\|pom\)' \
  | perl -pe 's#(.*/([^/]+)/([^/]+)/([^/]+)/[0-9a-f]{30,40}/([^/\s]+))$# ($x = $2) =~ tr|\.|/|; "install -Dm444 $1 \$out/$x/$3/$4/$5" #e' \
  | sh

but there are some variations. "Mavenizing" a Gradle cache should be standardized accross Nixpkgs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: hygieneCleaning up and removing cruft6.topic: javaIncluding JDK, tooling, other languages, other VMs
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions