-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
58 lines (51 loc) · 1.37 KB
/
build.gradle
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
53
54
55
56
57
58
buildscript {
ext.kotlin_version = '1.9.24'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.google.gms:google-services:4.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("com.spotify.ruler:ruler-gradle-plugin:2.0.0-beta-1")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ('com.android.build.gradle.AppPlugin' == plugin.class.name
|| 'com.android.build.gradle.LibraryPlugin' == plugin.class.name) {
project.android.testOptions.unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
}
}
}
}
}
subprojects {
if (!gradle.startParameter.taskNames.any { it.contains("lint") }) {
tasks.configureEach {
if (name.startsWith("lint")) {
enabled = false
}
}
}
}
project.rootProject.subprojects.find { it.name == "core" }.afterEvaluate {
it.tasks.named("check").configure {
it.dependsOn(project.gradle.includedBuild("plugins").task(":test"))
}
}
apply from: 'dependencies.gradle'