Gradle: Override transitive dependency by version classifier

后端 未结 6 1365
囚心锁ツ
囚心锁ツ 2020-12-28 12:42

One of the dependencies declared in my project has a transitive dependency on \'com.google.guava:guava:15.0\'. But my application deployed on WAS/Weblogic doesn

6条回答
  •  天命终不由人
    2020-12-28 13:21

    implementation( group: 'commons-codec', name: 'commons-codec'){
          version{
            strictly "[1.15]"
          }
       }
    

    This works for me with gradle 6.6.1

    The documentation link for strictly can found here https://docs.gradle.org/current/userguide/rich_versions.html#rich-version-constraints

提交回复
热议问题