Skip to content
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

Only some versions in the parent are updated when using sub-projects #64

Open
markusjevringsesame opened this issue Jun 21, 2023 · 0 comments

Comments

@markusjevringsesame
Copy link

markusjevringsesame commented Jun 21, 2023

Hi. I have a project which has a main build.gradle, and 3 sub-projects. We use the parent project to define versions for the sub-projects. It looks something like this:

buildscript {
    ext {
        springBootVersion = '3.1.0'
        internalLibraryVersion = '1.2.3'
   }
}

In each sub-project, we reference these versions like this:

implementation "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
implementation "com.internal.library:my-library:$internalLibraryVersion"

When we run the plugin, it detects that both spring boot and my-library needs to be updated. It clearly prints which version updates are needed, but ultimately only the springBootVersion line in the parent is updated. If we use the versions directly in the sub-projects, the other libraries are also correctly updated. It's clear that the update mechanism works, and that it can read the correct version from the repository etc, but it just isn't updating the versions in the parent. Any thoughts on why this might be?

It doesn't seem to be the case that it's only our internal libraries, either. Spring-boot updates, but hibernate does not. It's very weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant