Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Created November 25, 2019 20:28
Show Gist options
  • Save martinbonnin/55be6486ca384e9e4bbaf9980b9b8d22 to your computer and use it in GitHub Desktop.
Save martinbonnin/55be6486ca384e9e4bbaf9980b9b8d22 to your computer and use it in GitHub Desktop.
// buildSrc/build.gradle.kts
repositories {
mavenCentral()
google()
}
dependencies {
// add all your plugins artifacts here
classpath("com.android.tools.build:gradle:3.5.2")
classpath("com.squareup.sqldelight:gradle-plugin:1.2.0")
// ...
}
// build.gradle.kts
plugins {
// load the plugins but do not apply them to the root project
id("com.android.application").apply(false)
id("com.squareup.sqldelight").apply(false)
}
// app/build.gradle.kts
plugins {
// ...
id("com.android.application")
}
// lib/build.gradle.kts
plugins {
// ...
id("com.squareup.sqldelight")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment