Skip to content

Instantly share code, notes, and snippets.

@fleficher
Created December 24, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fleficher/341692d64b4e50db52281a68b5345a2a to your computer and use it in GitHub Desktop.
Save fleficher/341692d64b4e50db52281a68b5345a2a to your computer and use it in GitHub Desktop.
Plugins declaration
fun PluginDependenciesSpec.androidApp(): PluginDependencySpec =
id("com.android.application")
fun PluginDependenciesSpec.androidLibrary(): PluginDependencySpec =
id("com.android.library")
fun PluginDependenciesSpec.kotlinAndroid(): PluginDependencySpec =
kotlin("android")
fun PluginDependenciesSpec.kotlinAndroidExt(): PluginDependencySpec =
kotlin("android.extensions")
fun PluginDependenciesSpec.dependencyUpdates(): PluginDependencySpec =
id("com.github.ben-manes.versions").version("0.24.0")
fun PluginDependenciesSpec.ktlint(includeVersion: Boolean = true): PluginDependencySpec =
id("org.jlleitschuh.gradle.ktlint").also { if (includeVersion) it.version("8.2.0") }
fun PluginDependenciesSpec.detekt(includeVersion: Boolean = true): PluginDependencySpec =
id("io.gitlab.arturbosch.detekt").also { if (includeVersion) it.version("1.1.1") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment