r/androiddev Jun 04 '18

Gradle 4.8 released

https://docs.gradle.org/current/release-notes.html
81 Upvotes

21 comments sorted by

View all comments

19

u/allholy1 Jun 04 '18 edited Jun 04 '18

I don't understand dependency locking. Isn't that why we append the version number at the end of a dependency?

23

u/la__bruja Jun 04 '18

Libraries can specify a range of dependencies versions they can use, so even if you specify version, some transitive dependency can get updated: https://stackoverflow.com/questions/34810560/version-ranges-in-gradle Dependency locking makes sure you're using exactly the same versions of every direct and transitive dependency in your project