-
Notifications
You must be signed in to change notification settings - Fork 31
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
Multi-project with version variables in root does not update #43
Comments
Currently
So one would probably just have to extend |
Based on your comments, I went back and tried moving the version variables into Thanks for the help. |
I'd like to see if I can update the behaviour based on your comments above. I've had a look at the code and think I have an idea what to do. Are there any developer guidelines or expectations for contributing? (e.g. should I be forking and creating a PR from there, would you prefer if I create a branch in this repo, etc) |
I am actually not a maintainer, I just contributed a feature for updating root gradle.properties. Imo the best way is to create a fork, add your functionality + tests and then when you are happy with it you make a PR. |
Hi, I'm the (passive) maintainer, what @asodja said sounds good to me. |
I've just started looking into this and I'm hoping someone can provide some insight or suggestions. I'm seeing a number of failing unit tests on an unmodified master branch. My dev system is Linux based and I've tried with both Java 8 and Java 11 with the same results. Any thoughts or suggestions on why the tests might be failing on a clean repo? |
As I remember there are some tests that actually do real updates. There is a class
|
@asodja Thanks, you are correct @tony-schellenberg I have updated the verions on the master branch, it shouldn't fail anymore |
Yeah, that was the main issue. It appears there's a few tests that don't work as well and adding something like Thanks for all the help on that. |
* Supports *.gradle files in the root project now
* Addressing CodeNarc issues
* Should be backwards comaptible * Defaults to `gradle.properties` * `build.gradle` is not allowed and generates an error ** Trying to set `build.gradle` affects plugin and other updates
* Should be backwards comaptible * Defaults to `gradle.properties` * `build.gradle` is not allowed and generates an error ** Trying to set `build.gradle` affects plugin and other updates
Fixes #43 Adding list of root files with variables to update
When I use a version variable defined in the root project in a sub project, it does not update the root project variable. It updates the dependency used in the root project but not the one that is used in the sub project. Please let me know if more information is required and I'll do my best to provide it.
Gradle Version: 6.3
Gradle Versions Plugin: 0.29.0
Use Latest Version: 0.2.14
Project structure:
All versions numbers are set in an
ext
block incommonDependencies.gradle
as part of the root project as variables. There are only two dependencies/version variables defined. One dependency is referenced in each of thebuild.gradle
files. I.e. one dependency is referenced in the root project and the other one is in the sub project.In the root
build.gradle
, I've included the plugins in anallprojects
stanza.I've tried the following but haven't found a way to get the updates working:
useLatestVersions
useLatestVersions
with--update-root-properties
useLatestVersions
withupdateRootProperties = true
build.gradle
commonDependencies.gradle
settings.gradle
components/main/build.gradle
dependencies { implementation "io.dropwizard.metrics:metrics-core:$metricsVersion" }
The text was updated successfully, but these errors were encountered: