Exclude dependency is not working in gradle


(selvi ranganathan) #1

Hi , I need to exclude the dependency, i have tried with below coding and it doesn’t work at all.

Code:

configurations {
compile.exclude module: 'com.amzaws:aws-java-sdk:1.10.+'
all*.exclude group: ‘com.amzonaws:aws-java-sdk:1.10.+’, module: ‘reports’
}

dependencies {
compile (‘com.amzaws:aws-java-sdk:1.10.+’) {
exclude module: 'aws-java-sdk-learning’
exclude module: 'aws-java-sdk-works’
exclude module: 'aws-java-sdk-workflow’
exclude module: 'aws-java-sdk-lift’
exclude module: ‘aws-java-sdk-route’
}