Gradle Transitive dependency exclusion is not working as expected. (How do I get rid of com.google.guava:guava-jdk5:13.0 ?)

前端 未结 5 1021
星月不相逢
星月不相逢 2020-12-30 01:57

here is a snippet of my build.gradle:

compile \'com.google.api-client:google-api-client:1.19.0\'
compile \'com.google.apis:google-api-services-oauth2:v2-rev7         


        
5条回答
  •  鱼传尺愫
    2020-12-30 02:09

    It seems a dependency will not be excluded if there is another dependency somewhere that points to that same dependency without any of the excludes.

    You can exclude a dependency through configuration however:

    configurations {
      all*.exclude group: 'com.google.guava', module:'guava-jdk5'
    }
    

提交回复
热议问题