Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup and implement publishing Maven artefacts to MavenCentral and OSSRH #166

Closed
Tracked by #163
paullatzelsperger opened this issue Mar 29, 2023 · 1 comment · Fixed by #319, #320 or #409
Closed
Tracked by #163

Setup and implement publishing Maven artefacts to MavenCentral and OSSRH #166

paullatzelsperger opened this issue Mar 29, 2023 · 1 comment · Fixed by #319, #320 or #409
Assignees
Labels
enhancement New feature or request

Comments

@paullatzelsperger
Copy link
Contributor

paullatzelsperger commented Mar 29, 2023

WHAT

In order to have tractusx-edc consumable also on code-level we need to publish all artefacts to MavenCentral. In Eclipse projects that happens through an EF-managed Jenkins instance ("JIPP") that contains signing keys for MavenCentral.

WHY

MavenCentral requires all artefacts to be signed. That is done in Jenkins.

Implementation proposal

  • remove the publishAllPublicationsToGithubPackagesRepository task
  • GH Actions triggers Jenkins (through this action)
  • on releases: the version parameter does not contain the -SNAPSHOT suffix, thus causing it to sync to MavenCentral
  • use the credentials provided by this EF helpdesk ticket to sign the artefacts, and to publish to OSSRH/MavenCentral.
  • No Jenkins instance is required, we can directly push to OSSRH!
  • comment on this OSSRH issue once our first release is published successfully.

OPEN QUESTIONS

  • what's our publishing schedule? Snapshots on every push to develop? Nightlies?
  • do we already have a publishing environment set up?
  • if not: who will open helpdesk issues with EF and OSSRH? -> done here
  • should we host the declarative pipelines in a GitHub repo? (in EDC we do that)

[edit]: updated description based on not having to use Jenkins.

@paullatzelsperger paullatzelsperger added the enhancement New feature or request label Mar 29, 2023
@paullatzelsperger paullatzelsperger moved this to Todo in EDC Board Apr 11, 2023
@paullatzelsperger paullatzelsperger self-assigned this Apr 11, 2023
@stephanbcbauer stephanbcbauer moved this from Open to In Progress in EDC Board Apr 25, 2023
@paullatzelsperger
Copy link
Contributor Author

We are allowed to publish to MV directly from GH Actions, without going through Jenkins. Once this EF helpdesk issue is resolved, we can modify our publish workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment