-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (78 loc) · 2.3 KB
/
Copy pathbuild.gradle
File metadata and controls
88 lines (78 loc) · 2.3 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import static Versions.daggerVersion
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools:r8:3.3.75'
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.14'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath "com.google.dagger:hilt-android-gradle-plugin:$daggerVersion"
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.42.0'
id 'com.diffplug.spotless' version '6.6.1'
id 'io.gitlab.arturbosch.detekt' version '1.20.0'
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
subprojects {
repositories {
google()
mavenCentral()
}
apply from: rootProject.file('detekt.gradle')
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
ktlint("0.41.0")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
kotlinGradle {
target '*.gradle.kts'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
ktlint()
}
format 'xml', {
target '**/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}
tasks.withType(Test) {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
}
task mockitoExtensions {
doFirst {
rootProject.subprojects.each {
def path = "${it.projectDir}/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker"
def mockMakerFile = new File(path)
mockMakerFile.parentFile.mkdirs()
mockMakerFile.createNewFile()
mockMakerFile.write("mock-maker-inline")
}
}
}
task('test').dependsOn mockitoExtensions