Version ranges in gradle

后端 未结 2 1931
余生分开走
余生分开走 2021-02-19 04:17

What are the possible ways of specifying version ranges in gradle dependencies? I saw some 1.+ notation but I have not found a document which really says what is possible and wh

2条回答
  •  灰色年华
    2021-02-19 04:51

    The book "Gradle Dependency Management" states on p. 12 and 13 that, in addition to the +-notation (2.1.+ means the range from 2.1.0 inclusive to 2.2.0 exclusive) you can use the Ivy notation for open and closed intervals of the form

    [1.0,2.0]
    [1.0,2.0[
    

    or also

    [1.0, )
    

    for "all versions starting from 1.0".

提交回复
热议问题