Created
April 11, 2018 12:18
-
-
Save jpardogo/8366ee573e2b2b7c95af8fb740418ea5 to your computer and use it in GitHub Desktop.
Gradle DependecyResolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
project.configurations.all { | |
resolutionStrategy.eachDependency { details -> | |
boolean isMultidex = details.requested.name.contains('multidex') | |
if (details.requested.group == 'com.android.support' && !isMultidex){ | |
details.useVersion lib_versions.support | |
}else if(isMultidex){ | |
details.useVersion lib_versions.multidex | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment