seedvault/build.gradle.kts
2023-10-19 00:22:51 -04:00

44 lines
1.6 KiB
Text

import org.jlleitschuh.gradle.ktlint.KtlintExtension
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:${plugins.versions.androidGradle}")
classpath("com.google.protobuf:protobuf-gradle-plugin:${plugins.versions.protobuf}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${plugins.versions.kotlin}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${plugins.versions.kotlin}")
classpath("org.jlleitschuh.gradle:ktlint-gradle:${plugins.versions.ktlint}")
}
}
plugins {
id("com.android.application") version plugins.versions.androidGradle apply false
id("com.android.library") version plugins.versions.androidGradle apply false
id("com.google.protobuf") version plugins.versions.protobuf apply false
id("org.jetbrains.kotlin.android") version plugins.versions.kotlin apply false
id("org.jetbrains.kotlin.kapt") version plugins.versions.kotlin apply false
id("org.jetbrains.dokka") version plugins.versions.kotlin apply false
id("org.jlleitschuh.gradle.ktlint") version plugins.versions.ktlint apply false
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
subprojects {
if (path == ":app" || path == ":storage:lib") {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
configure<KtlintExtension> {
version.set("0.42.1")
android.set(true)
enableExperimentalRules.set(false)
verbose.set(true)
disabledRules.set(listOf("import-ordering", "no-blank-line-before-rbrace", "indent"))
}
}
}