Hi everyone, thanks for the time you have taken to...
# refreshversions
g
Hi everyone, thanks for the time you have taken to create this tool 🙌. I'm trying to add Koin to my project using refreshVersions, but I'm unable to find the ID. I already found a few PR closed about adding koin 🤔 It's possible to add custom dependencies that don't exist on refresh versions? I didn't understand that part from the docs 😅
l
Hi @gvetri, yes, you just need to use
_
as the version and refreshVersions will manage the version.
g
Awesome! I added
Copy code
implementation("org.koin:koin-core:_")
And the versions.property has generated the line:
Copy code
version.org.koin..koin-core=2.2.2
Thanks for the help. Now this may be a tricky question but it's possible to choose another dependency than the generated? for example 2.0.1 instead 2.2.2. I'm migrating dependencies to refreshVersions and doing a koin migration from 2.0.1 to 2.2.2 can probably be a huge PR.
l
You can edit the
versions.properties
file to specify a different version, for sure. If you run the
refreshVersions
task again, it'll show all the updates that came after the currently used version.
g
Oh, I see. I don't know why I was thinking that changing in the
versions.properties
would update it automatically to the latest version 🤦‍♂️. Thanks
l
ies
, not
y
🤦‍♂️ 1
Updates are done in two steps, get the available ones with the Gradle task, and do the update manually
g
Oops! That was a typo. Thanks for the explanation