-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add support for logical dependency #152
Comments
@snicoll Another good example would be adding Spring Security should also add spring-security-test. |
I guess you mean the security starter, right? |
@snicoll Right. If you add spring-security-starter, then it should also add spring-security-test. |
I wrote something like this in the fork that Kroger (the company I work for) is using. Let me see if I can pull it from there and contribute. |
Maybe this issue could allow to fix the very annoying Kotlin module issue described in #400, by managing logicial dependencies with language related conditions. |
Unfortunately I believe it would not. If that was so easy, we would have cooked a request post processor by now. The problem with the issue described in #400 is that we have no way to know that jackson has been added but to inspect the transitive dependencies of the starters that were selected by the user. I believe documentation (and the guide you offered to write in #400) are a more realistic option at this point. |
I truly understand this is not an easy one, but even with documentation, projects using Boot + Kotlin + Jackson (vast majority of Kotlin projects) are broken out of the box for use cases as simple as writing a REST webservice. IMO even experienced developers will forget to add it 50% of the time because with start.spring.io, we have the habits of just generating a project, write classes, run and it works. So when I saw this issue I thought it would be interesting to discuss if it could be use to help for such use case (even if maybe it is not). Having the capability to add a post-processor able to inspect transitive dependencies and add My proposal is a more basic approach where we leverage the new feature discussed here to add for dependencies like "Web" and "Reactive Web" (maybe a few others like "Ratpack" or "Vaadin" if that makes sense) an additional Any thoughts? |
Yes, I don't think this discussion belongs here as I really think this request is unrelated to what you are trying to address. Can you please copy/paste your comment in a new issue and we can take it from there? |
We'd like to experiment some metadata change where we'd be able to provide a |
It would be nice that Spring Initializr had the concept of logical dependency (that is a dependency entry that represents several dependencies).
Concretely, this means that adding a dependency (a checkbox in the UI) has the effect of adding several dependencies in the project. This is a good alternative for things that are frequently used but for which we don't want/need an explicit starter.
#151 is a good example
The text was updated successfully, but these errors were encountered: