-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (47 loc) · 1.53 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
51 lines (47 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
buildscript {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven { url = uri("https://plugins.gradle.org/m2/") }
}
dependencies {
classpath(libs.google.oss.licenses.plugin) {
exclude(group = "com.google.protobuf")
}
classpath("io.objectbox:objectbox-gradle-plugin:${libs.versions.objectboxGradlePlugin.get()}")
}
}
plugins {
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.android.library).apply(false)
alias(libs.plugins.kotlin.kapt).apply(false)
alias(libs.plugins.ksp).apply(false)
// Add ktlint plugin
id("org.jlleitschuh.gradle.ktlint") version "11.5.1" apply false
// Add detekt plugin
id("io.gitlab.arturbosch.detekt") version "1.23.8" apply false
}
// Apply ktlint to all projects
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
// Configure ktlint
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
debug.set(true)
android.set(true)
outputToConsole.set(true)
outputColorName.set("RED")
ignoreFailures.set(false)
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
}
// Remove the temporary .editorconfig approach since we now have a permanent file