It looks like most of the time, refreshVersions us...
# refreshversions
t
It looks like most of the time, refreshVersions uses rootDir.resolve("versions.properties") to resolve versionsPropertiesFiles, however line 82 of https://github.com/jmfayard/refreshVersions/blob/main/plugins/dependencies/src/main/kotlin/de/fayard/refreshVersions/RefreshVersionsPlugin.kt shows it using the value from the config file. Is there any reason that that same method of selecting the "versions.properties" file cannot be used elsewhere? I've been using the option of specifying the versionPropertiesFile in my settings.gradle.kt in order to have multiple included builds to use the same versions. I could also, symlink my 'master' versions.properties to the versions.properties in the root of each included build. which is the 'better' way?
l
Hello, What do you mean exactly when you say "cannot be used elsewhere?"? Also, when you ask "which is the 'better' way?", I would say the symlink approach sadly won't work on Windows, so I'd say the first? Is anything not working as expected for you?
t
Hello, Just got back to my desk. Figured it was easier to put a PR together as I see why its not working and explaining it with code is easier for me. 🙂 I'll be pushing a PR in a few hours.