-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Honor hooks declared in jar metadata #401
Comments
Two options so far:
The former is probably faster, but it does not allow for hooks to be declared in transitive dependencies. This may be a good thing. Thoughts? |
It feels like the former solution is the cleaner of the two and the most simplistic. I'd prefer it unless there were specific reasons that it would be disadvantageous. |
Ruling out 1 after some IRC discussion on the topic. |
How about middleware from plugins? or maybe that is a separate issue... |
middleware from plugins could probably be applied the same way. |
As a follow up to the post I made on the group, this mechanism would indeed fill the gap left after the fix for #599 . I am working on a relatively large project where we have a plugin that allows us to "centralize" dependencies accross all modules. Until now, we were using a middleware from this plugin to add all required dependencies (and other properties) to the project. So option 0. would be nice, and of course being able to still modify the project before being passed to the tasks as middlewares were able to do until recently. |
So what is the status of this? Will Leiningen 2 be released without plugin middleware support? |
I'm working on implementing this based on the discussion here: http://lazybot.org/logs/#leiningen/2012-07-19 |
This can happen in merge-profiles, unmerge-profiles or in the newly added reset-profiles. All three rebuild the project map from scratch using `(:without-profiles (meta project))`. This prevents middleware from being applied twice to the same project map. We also have to call apply-middleware explicitly in init-project because we want to load-plugins before applying middleware in this case only. An alternative would be to load plugins every time project profiles are modified. @technomancy, what do you think of that option? Issue #401
Should we try to get this in for preview8? I would like to release it early next week. |
This can happen in merge-profiles, unmerge-profiles or in the newly added reset-profiles. All three rebuild the project map from scratch using `(:without-profiles (meta project))`. This prevents middleware from being applied twice to the same project map. We also have to call apply-middleware explicitly in init-project because we want to load-plugins before applying middleware in this case only. An alternative would be to load plugins every time project profiles are modified. @technomancy, what do you think of that option? Issue #401 Conflicts: leiningen-core/src/leiningen/core/main.clj src/leiningen/pom.clj
I just merged this from the auto-middleware branch into master. |
Reopening this since we need documentation. |
Sounds like the docs are in for this; cool. |
Need to sketch out a good convention for this.
The text was updated successfully, but these errors were encountered: