-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathbuild.gradle
60 lines (53 loc) · 1.95 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
59
60
// Top-level build file where you can add configuration options common to all sub-projects/modules.
def lintReportsDir = file("${rootProject.buildDir}/lint-reports")
def testReportsDir = "${rootProject.buildDir}/test-reports"
def testResultsDir = "${rootProject.buildDir}/test-results"
buildscript {
ext.kotlin_version = '1.6.21'
ext.android_plugin_version = '7.0.4'
ext.sdkVersion = 31
ext.minimumSdkVersion = 14
ext.databinding_version = '7.1.3'
ext.viewbinding_version = '7.1.3'
ext.junit_version = '4.13.2'
ext.mockito_version = '3.3.3'
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "com.android.tools.build:gradle:$android_plugin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { project ->
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
afterEvaluate {
if (project.hasProperty('android')) {
android {
// use a custom location for the Lint reports so that it's easy to archive them in Circle CI
lintOptions {
htmlOutput file("$lintReportsDir/${project.name}/lint-report.html")
}
// it would be nice to do the same with test results/reports
// but it doesn't work: https://issuetracker.google.com/issues/37132023
testOptions {
reportDir "$testReportsDir/${project.name}"
resultsDir "$testResultsDir/${project.name}"
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}