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

New format option untaggedSuffix #66

Merged
merged 5 commits into from
Sep 1, 2022
Merged

New format option untaggedSuffix #66

merged 5 commits into from
Sep 1, 2022

Conversation

lefou
Copy link
Owner

@lefou lefou commented Sep 1, 2022

When publishing artifacts to Maven Snapshot repositories, the version needs to end in -SNAPSHOT.

With this addition, we can automatically add such a suffix, while keeping a unique version based on the last tag.

README.adoc Outdated Show resolved Hide resolved
@lefou lefou changed the title New format option appendSnapshot New format option untaggedSuffix Sep 1, 2022
@@ -52,6 +58,28 @@ case class VcsState(
case t => t
}

@deprecated("Binary compatibility shim. Use other overload instead.", "mill-vcs-verison after 0.2.0")
private[version] def format(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a naive question, but is this needed? With the new change it won't break compat for existing users right because it has a default value?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Typically, you're right, as most Mill plugins are used in build scripts, hence their use site is always recompiled, when the version changes.

But with your new mill-ci-release plugin, we started to have downstream users who depend on binary published artifacts. And there is a high change of really breaking the build, when the user is also explicitly importing both plugins.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh, so you're saying it's my fault! 😆

Kidding, makes sense.

Copy link
Contributor

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

This is great. Thanks so much for adding this! LGTM

@lefou lefou merged commit 2d81789 into main Sep 1, 2022
@lefou lefou deleted the append-snapshot branch September 1, 2022 11:48
@lefou lefou added this to the after 0.2.0 milestone Sep 1, 2022
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.

2 participants