How to update Gradle dependencies to their latest version

前端 未结 4 939
有刺的猬
有刺的猬 2020-12-24 06:02

Is there an easy way to get gradle to update dependencies to their latest available version?

For build reproducibility all my dependencies are defined with a version

4条回答
  •  Happy的楠姐
    2020-12-24 06:35

    Add to build.gradle:

    plugins {
      id 'com.github.ben-manes.versions' version '0.17.0'
    }
    

    Then you can do gradle dependencyUpdates to get a report of new versions. Unlike the eponymous Maven plugin, there doesn't seem to be a way of automatically updating the build.gradle yet.

    More documentation: https://github.com/ben-manes/gradle-versions-plugin

提交回复
热议问题