Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Created November 25, 2019 22:05
Show Gist options
  • Save martinbonnin/867584a7fa62687b272a3b8262d27104 to your computer and use it in GitHub Desktop.
Save martinbonnin/867584a7fa62687b272a3b8262d27104 to your computer and use it in GitHub Desktop.
pluginManagement {
resolutionStrategy {
// These plugins don't have a marker artifact, tell gradle were to look them up
eachPlugin {
if (requested.id.id == "com.android.application") {
useModule("com.android.tools.build:gradle:${requested.version}")
}
if (requested.id.id == "com.squareup.sqldelight") {
useModule("com.squareup.sqldelight:gradle-plugin:${requested.version}")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment