-
Notifications
You must be signed in to change notification settings - Fork 88
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
Dependencies declared in a platform are excluded unless applyMavenExclusions is set to false #368
Comments
Thanks for the report, @PeterFokkinga.
That need not be the case. You can use Spring Boot 3.1.2 and later with 1.1.0 of the dependency management plugin. One way to do that is by forcing its version:
|
@PeterFokkinga the sample doesn't work due to a 401 response:
Edit: never mind, I can reproduce it by publishing the platform locally and referring to that. |
Another workaround:
|
Thanks for the workarounds, I can confirm that we can use Spring-boot 3.1.4 in our projects with
(or use 1.1.0 as long as |
The minimal example now works with 1.1.4-SNAPSHOT. @PeterFokkinga it'd be great if you could give it a try in your real project and confirm the fix. You can use 1.1.4-SNAPSHOT by adding the following to
|
@wilkinsona 1.1.4-SNAPSHOT works partially. When I replace the workaround with 1.1.4-SNAPSHOT the project including tests compile, but the tests won't run with "java.lang.ClassNotFoundException: okio.Buffer" Looking into it I see that the com.squareup.okio package is not in the list of dependencies when using 1.1.4-SNAPSHOT whereas it is when using the workaround. It comes from rather deep down, and by using a constraint (note that the okhttp3 package is in the dependencies when using 1.1.4-SNAPSHOT)
Hope this gives a clue. |
Thanks for trying the snapshot. I think the latest part of the problem should now be fixed too. Please give the new snapshot a try (with |
@wilkinsona the current 1.1.4-SNAPSHOT works perfectly! |
Great! Thanks for giving it a try, @PeterFokkinga. |
This is similar / a continuation of issue #360 (which was closed as resolved) and #361 where we were asked for a minimal example that reproduces the problem remaining.
The following build.gradle works (using gradle 8.4)
But with dependency-management 1.1.1 / 1.1.2 and 1.1.3 the transient dependencies are not found:
This issue prevents us from updating Spring-boot in our projects to a version newer than 3.1.1
The text was updated successfully, but these errors were encountered: