-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (46 loc) · 1.7 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
52 lines (46 loc) · 1.7 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
52
@file:Suppress("UnstableApiUsage")
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.maven.publish) apply false
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
if (name != "lint" && name != "internal" && name != "lintchecks") {
apply(plugin = "checkstyle")
configure<CheckstyleExtension> { toolVersion = "8.10.1" }
tasks.register<Checkstyle>("checkstyle") {
configFile = file("$rootDir/library/quality/checkstyle.xml")
source("src")
include("**/*.java")
exclude("**/gen/**")
classpath = files()
}
}
}
// Android Lint is configured per module, so there is no repo-wide entry point by default.
// This task is that entry point, and the module list is the gate's definition:
// - :app and :e2eTest declare no lint { } block yet, so they are deliberately absent (CPRN-433).
// - :proguard-tests disables its debug variant on CI, so it is gated on release instead.
tasks.register("lintAll") {
group = "verification"
description = "Runs Android Lint for every module that configures a lint { } block."
dependsOn(
":auth:lintDebug",
":common:lintDebug",
":database:lintDebug",
":firestore:lintDebug",
":library:lintDebug",
":storage:lintDebug",
":internal:lintchecks:lintDebug",
":proguard-tests:lintRelease"
)
}