-
Notifications
You must be signed in to change notification settings - Fork 43
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
spring-boot plugin conflict #86
Comments
Hi Thomas, I might be misunderstanding the issue, but I wasn't able to reproduce the problem you're describing. Would appreciate if you could take the code I used and clarify what didn't work. The code is on: https://github.com/nadavc/dl-86.git (run |
Hi, Thank you very much for your feed-back! Any way, here’s the test case based on our useful example. 1- run ./gradlew clean generateLock saveLock build 2- the lock file is generated and correct 3- run ./gradlew clean build 4- the build is still OK 5- change the gradle dependencies to use another version of hazelcast, for example: 6- run ./gradlew clean build 7- gradle is using the EA2 version and not the RC1 which is still in the lock file! 8- Remove the “apply plugin: spring-boot” line in the gradle script 9- run ./gradlew clean build 10- Now gradle is correctly using the RC1 from the lock file, though another dependency is mentioned in the script, as expected. Hoping it helps! Thomas |
Any update about this issue ? |
I think this is related to spring-gradle-plugins/dependency-management-plugin#77 |
I saw the reference to this issue on spring-gradle-plugins/dependency-management-plugin#77. I don't think this issue is related, but the behaviour you're seeing is due to the dependency management plugin that Spring Boot's plugin uses. The goal of the dependency management plugin is to control the versions of a project's dependencies (both direct and transitive). In the configuration in the example at the top of this issue, it's using Spring Boot's bom as a source of versions. That's what allows the You've specified a dependency on Unfortunately, this means that I'm not sure that there's an easy way to fix this problem. Irrespective of how they're implemented the two plugins are always going to have compete with each other. The best solution may be to stop using one of the plugins. |
Exactly right - @rspieldenner we'll probably see issues with align resolution rules too. Think we'll need to do something about this sooner rather than later. |
Technically a dupe of #76, but I'll keep this open because there's a bunch of useful context here, and we'll want functional tests that specifically verify locking with Spring's dependency management plugin. |
@ThomasGilbert @dholbrook @wilkinsona release 4.3.0 is on it's way out now. You'll find it should co-exist far better with other plugins now:
|
Oh, and we appreciate the report - this feedback allowed us to make the plugin immensely more reliable and predictable. |
Hi,
I'm trying to use this plugin along with the spring-boot one. There seem to be a conflict as this plugin does not load the dependencies from the .lock file as soon as I apply the spring-boot one. Maybe the problem comes from a spring-boot issue, but I wanted to report to you as well.
In this example, as soon as you remove the spring-boot plugin and task, it's working as expected.
The text was updated successfully, but these errors were encountered: