Skip to content

Instantly share code, notes, and snippets.

@nethergrim
Last active March 3, 2021 13:50
Show Gist options
  • Save nethergrim/397638071d41b448bf0a49aa86da4d5a to your computer and use it in GitHub Desktop.
Save nethergrim/397638071d41b448bf0a49aa86da4d5a to your computer and use it in GitHub Desktop.
πŸš€ build.gradle which forces all subprojects to use a single version of support library
ext {
supportlib_version = '28.0.0'
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "$supportlib_version"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment