I am trying to exclude some modules from my build.gradle file, but it (code1 and code2) still loads the excluded files.
code 1:
compile (group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.11.7') { exclude group: 'com.amazonaws', module: 'aws-java-sdk-machinelearning' }
code 2:
compile (group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.11.7') { exclude module: 'aws-java-sdk-machinelearning' }
when I tried to use the following code,
configurations { compile.exclude module: 'aws-java-sdk-machinelearning' }
it excludes files, but I do not want to use this method to exclude files
java build.gradle gradle
r123
source share