Skip to content

Add :old-group-id support #9

@plexus

Description

@plexus

Currently in bin/proj we set the Maven group-id, e.g. here is the bin/proj for Facai

#!/usr/bin/env bb
(ns proj
  (:require [lioss.main :as lioss]))

(lioss/main
 {:license                  :mpl
  :inception-year           2022
  :description              "The ultimate factory library"
  :group-id                 "com.lambdaisland"
  :version-qualifier        "alpha"
  :aliases-as-optional-deps [:jdbc]})

As explained in #2 , we have a few projects that have previously been released under lambdaisland, where at some point we switched to com.lambdaisland. For these we want to still release a version under lambdaisland, but one that is nothing but an empty jar (only containing the pom), with a single dependency on the com.lambdaisland version. We'll specify this through a new option in bin/proj: :old-group-id.

:group-id "com.lambdaisland"
:old-group-id "lambdaisland"

If this key is present the release process (see lioss.release/do-release), after deploying the main artifact, will create a pom.xml in a temp directory, and then mvn deploy it from there.

We'll need to implement the single-dependency-pom, see lioss.pom/regular-pom and lioss.pom/relocation-pom. This new pom will not have a relocation stanza (we're not actually using Maven relocation support), it will have a <dependencies> section pointing at the previously released artifact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions