Skip to content

Rename publishM2Local to publishLocal, remove old ~/.ivy2 publishLocal implementation #5163

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented May 20, 2025

Follow up to recent work to get rid of legacy ivy terminology (e.g. #4930), we should publish to the local ~/.m2 maven repo rather than ~/.ivy2 ivy repo by default.

@lihaoyi lihaoyi changed the title Make publishLocal publish to ~/.m2, remove `publishM2Local Rename publishM2Local to publishLocal, remove old ~/.ivy2 publishLocal implementation May 20, 2025
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

IMHO, we should keep support for publishing to the local ivy repo for a while, maybe as publishIvyLocal. I think sbt is still using it.

Also, why not keep the name publishM2Local. Since there are multiple local repository standards, being more explicit leaves less room for confusion.

(Ideally, publishLocal would just be an alias to the concrete publish method and defaults to publishM2Local.)

@alexarchambault
Copy link
Collaborator

alexarchambault commented May 21, 2025

About using ~/.m2/repository, there have been issues when using this repository in coursier see here and the links there.

But a Mill-specific local Maven repository could work, like ~/.mill/maven-local. I think I could add it as a default in coursier (alongside ~/.ivy2/local), and we could give instructions to Maven / Gradle users about how to use it in these.

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.

3 participants