Skip to content

chore(build): stop publishing Maven artifacts; release only the Docker image - #20

Merged
patextreme merged 1 commit into
mainfrom
chore/drop-maven-publish
Jul 28, 2026
Merged

chore(build): stop publishing Maven artifacts; release only the Docker image#20
patextreme merged 1 commit into
mainfrom
chore/drop-maven-publish

Conversation

@patextreme

Copy link
Copy Markdown
Contributor

Why

Following the namespace-consistency check: the plugin jar published to GitHub Packages has no Maven consumer anywhere in the Identus workspace — it's consumed only via the Docker image (which `COPY`s it from `target/`). Publishing it only caused problems:

  • the `sbt-github-packages` target (`maven.pkg.github.com/hyperledger/identus-keycloak-plugins`) was orphaned from the repo and 404'd, aborting the release before the Docker image push (run 30343777327);
  • GitHub Packages is inconsistent with the workspace convention, where libraries (apollo, vdr, mediator) publish to Maven Central under `org.hyperledger.identus`.

Change

Drop the Maven-publish plumbing entirely:

  • remove `publishArtifacts` from the release process;
  • remove the now-unused `commonSettings` (`githubOwner`/`githubRepository`);
  • remove the `sbt-github-packages` plugin.

The jar is still built (`packageBin` stays in the release process) so `Dockerfile-ci`'s `COPY ./target/*.jar` still works — only the Maven publish step is gone. After this, the release just: builds the jar → builds & pushes the Docker image to `ghcr.io/hyperledger-identus/keycloak-plugins` (from #18) → cuts the tag.

Release flow (after merge)

Re-trigger `release.yml` → semantic-release cuts 0.2.1 (#18's `fix:` commit is already on `main`) and publishes only the Docker image. Then set the new GHCR package public, verify `docker pull`, and bump cloud-agent's image reference.

Notes for reviewer

  • `main` requires signed commits — merge needs a signing setup.
  • No effect on the Docker image; the jar is still produced for it.

…r image

The plugin jar has no Maven consumer anywhere in the Identus workspace
(it is consumed exclusively via the Docker image, which COPYs it from
target/). Publishing it to GitHub Packages only caused problems:

- the sbt-github-packages target (maven.pkg.github.com/hyperledger/
  identus-keycloak-plugins) was orphaned from the repo and 404'd,
  aborting the release before the Docker image push;
- GitHub Packages is also inconsistent with the workspace convention,
  where libraries (apollo, vdr, mediator) publish to Maven Central under
  org.hyperledger.identus.

Drop the Maven-publish plumbing entirely:
- remove `publishArtifacts` from the release process;
- remove the now-unused `commonSettings` (githubOwner/githubRepository);
- remove the sbt-github-packages plugin.

The jar is still built (`packageBin` remains in the release process) so
the Dockerfile-ci `COPY ./target/*.jar` still works; only the Maven
publish step is gone.

Signed-off-by: Pat Losoponkul <patextreme@hotmail.com>
@patextreme
patextreme merged commit 877da7e into main Jul 28, 2026
6 checks passed
@patextreme
patextreme deleted the chore/drop-maven-publish branch July 28, 2026 09:20
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