6953f154b3
This fixes broken AGP Upgrade Assistant in Android Studio as well as detects the version catalog files in Android view. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
/*
|
|
* SPDX-FileCopyrightText: 2023 The Calyx Institute
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application) apply false
|
|
alias(libs.plugins.android.library) apply false
|
|
alias(libs.plugins.google.protobuf) apply false
|
|
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
|
alias(libs.plugins.jetbrains.kotlin.kapt) apply false
|
|
alias(libs.plugins.jetbrains.dokka) apply false
|
|
alias(libs.plugins.jlleitschuh.ktlint) apply false
|
|
}
|
|
|
|
tasks.register("clean", Delete::class) {
|
|
delete(rootProject.buildDir)
|
|
}
|
|
|
|
subprojects {
|
|
if (path != ":storage:demo") {
|
|
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"))
|
|
}
|
|
}
|
|
}
|