-
Notifications
You must be signed in to change notification settings - Fork 144
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 sonatype commands that shouldn't be run in release process #500
Remove sonatype commands that shouldn't be run in release process #500
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.
lgtm
@@ -18,6 +18,12 @@ ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec) | |||
sourceDistName := "apache-pekko" | |||
sourceDistIncubating := true | |||
|
|||
commands := commands.value.filterNot { command => | |||
command.nameOption.exists { name => | |||
name.contains("sonatypeRelease") || name.contains("sonatypeBundleRelease") |
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.
I would like to use StringUtil.containsAny(...)
:)
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.
I don't think we can use that because this is an sbt build and hence the dependency that brings in StringUtil
isn't available
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.
seems better to stick with plain Java/Scala
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.
lgtm
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.
lgtm (I guess there's little risk that someone is going to miss these commands, easy enough to grep the cause)
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.
lgtm
As documented in https://github.com/apache/incubator-pekko-site/wiki/Pekko-Release-Process#deploy-the-jars-to-apache-maven-repository-staging there are commands that shouldn't be executed. This PR removes these commands (which are brought in by sbt-sonatype) so release managers cannot accidentally execute them as part of release process.