-
Notifications
You must be signed in to change notification settings - Fork 3
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
Maven #14
Maven #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One immediate suggestion to add pom.xml
to the JSON description.
Tested in a few context of a few repositories.
- [minimal-omero-client](https://github.com/ome/minimal-omero-client/actions/runs/381054924(
- bio-formats-examples
- ome-codecs
Other repositories will need extra customizations:
- ome-common-java requires infrastructure to run the S3 tests on some platforms
- ome-model has some Python requirements
A related question is whether you see the Maven deployment happening as part of this template or in a separate template running on tags like PyPI? For reference, we have 2 strategies depending on the target repository:
- for OME Artifactory deployment, a
deploy
phase was following the Travis build phases and runningmvn deploy
with a secret - for OSS Sonatype deployments, the process was carried out manually with the signed GPG key
Co-authored-by: Sébastien Besson <seb.besson@gmail.com>
I think we should split the "deployment" step and the "build" from the template. |
Some repos won't be able to use the template as such. The same is true for the gradle template e.g. https://github.com/ome/omero-blitz |
If the one workflow won't be a single solution, then might be worth renaming. Have we split the two procedures in the other ecosystems as well? |
Gradle for example does not have yet any deployment |
Summarizing briefly a conversation with @jburel:
|
One option could be to have a flag at the top of the template indicating the desired deployment target e.g. push artifact to GH |
I will list this for review since some repositories that do not need deployment steps could benefit from that template as it is |
tested the GH publishing option in ome/omero-downloader#46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think this is a great start. Understanding this template might be expanded to cover publication release steps - see ome/omero-downloader#46, happy to get this merged it and start apply it to the relevant repositories. The main disadvantage is that it might involve a wave of workflow updates. @joshmoore any concern or additional thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, none as it stands. I can see getting this in a propagating or trying to get the uploading handled to only need to rollout once.
Understood, immediately I'll start rolling this out to the Maven repositories deployed on OSSRH since there was no equivalent and we still need to investigate this publishing strategy. |
Add template to build using Maven
This has been tested in the BF repo see https://github.com/jburel/bioformats/actions/runs/370615843