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

Remove sbt config no longer needed with automated-maven-release #24

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Dec 5, 2023

Copy link

github-actions bot commented Dec 5, 2023

Mock info: This PR Breaks Binary Compatibility when compared against most recent release 3.0.0. Details...

@@ -1,5 +1,3 @@
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
Copy link
Member Author

@rtyley rtyley Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need sbt-pgp at all anymore, because we now just use bare gpg to sign the artifacts:

https://github.com/guardian/github-actions-automated-maven-release/blob/107ca3890bd46986bd43f71993dba785dd802583/.github/workflows/reusable-automated-maven-release.yml#L198

We can just use gpg because the file structure is now simpler - just sign everything in a folder - and I believe we now get benefit from using bare gpg, because of the GitHub Job isolation that automated-maven-release is doing:

image

@@ -1,7 +1,3 @@
sonatypeProfileName := "com.gu"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to set sonatypeProfileName because it's set for us in reusable-automated-maven-release.yml :

https://github.com/guardian/github-actions-automated-maven-release/blob/107ca3890bd46986bd43f71993dba785dd802583/.github/workflows/reusable-automated-maven-release.yml#L250

The sonatypeProfileName is going to be the same for all the repos in our organisation: com.gu - note we can still set a distinct group id for our artifacts using the organization setting:

ThisBuild / organization := "com.gu.etag-caching"

@rtyley rtyley merged commit 8f3a41d into main Dec 5, 2023
2 checks passed
@rtyley rtyley deleted the remove-some-sbt-config-no-longer-needed-with-automated-maven-release branch December 5, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant