-
-
Notifications
You must be signed in to change notification settings - Fork 406
Add Dep.millProjectModule
to refer to mill project modules
#4790
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
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.
If the tests pass looks good to me I guess, this whole millModule
thing is purely to support testing using local classes
That's actually an interesting question to ask. Maybe we should have a "global" |
This is meant as a replacement for `mill.util.ModuleUtils.millProjectModule`.
We still need to keep it for VisualizeModule, which resides in `mill.main` and can't access `CoursierModule`.
@lihaoyi That sound like a good idea. Since coursier is currently part of Mill core anyway, it should work. But it means we also need to move |
The one test failing in CI is running successfully on my machine. Merging. |
…com-lihaoyi#4790) This is meant as a replacement for `mill.util.ModuleUtils.millProjectModule`, which I annotated as deprecated. The main motivation for this change is to handle mill module dependencies more regular. Since they can be resolved together with other dependencies, this should result in better conflict resolution. The older API rather forces us to concat two potential redundant or conflicting classpaths. There is one last usage of the older `ModuleUtils.millProjectModule` from `VisualizeModule`, which resides in `mill.main` and can't access `CoursierModule` or `Dep`. Don't know how to best handle it. Original pull request: com-lihaoyi#4790
…com-lihaoyi#4790) This is meant as a replacement for `mill.util.ModuleUtils.millProjectModule`, which I annotated as deprecated. The main motivation for this change is to handle mill module dependencies more regular. Since they can be resolved together with other dependencies, this should result in better conflict resolution. The older API rather forces us to concat two potential redundant or conflicting classpaths. There is one last usage of the older `ModuleUtils.millProjectModule` from `VisualizeModule`, which resides in `mill.main` and can't access `CoursierModule` or `Dep`. Don't know how to best handle it. Original pull request: com-lihaoyi#4790
…#4790) (#4830) This is meant as a replacement for `mill.util.ModuleUtils.millProjectModule`, which I annotated as deprecated. The main motivation for this change is to handle mill module dependencies more regular. Since they can be resolved together with other dependencies, this should result in better conflict resolution. The older API rather forces us to concat two potential redundant or conflicting classpaths. There is one last usage of the older `ModuleUtils.millProjectModule` from `VisualizeModule`, which resides in `mill.main` and can't access `CoursierModule` or `Dep`. Don't know how to best handle it. Original pull request: #4790 Pull request: #4830
This is meant as a replacement for
mill.util.ModuleUtils.millProjectModule
.The main motivation for this change is to handle mill module dependencies more regular. Since they can be resolved together with other dependencies, this should result in better conflict resolution. The older API rather forces us to concat two potential redundant or conflicting classpaths.
There is one last usage of the older
ModuleUtils.millProjectModule
fromVisualizeModule
, which resides inmill.main
and can't accessCoursierModule
orDep
. Don't know how to best handle it.