forked from ummarbhutta/logger
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
67 lines (58 loc) · 1.49 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
61
62
63
64
65
66
67
buildscript {
ext.kotlinVersion = '1.5.30'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
subprojects { project ->
group = GROUP
version = VERSION_NAME
apply plugin: 'checkstyle'
checkstyle{
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '8.6'
}
task checkstyle(type: Checkstyle) {
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
afterEvaluate {
if (project.tasks.findByName('check')) {
check.dependsOn('checkstyle')
}
}
apply plugin: 'com.vanniktech.android.junit.jacoco'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
minSdkVersion = 8
targetSdkVersion = 29
compileSdkVersion = 29
buildToolsVersion = '29.0.3'
}
ext.deps = [
junit : 'junit:junit:4.12',
truth : 'com.google.truth:truth:0.28',
robolectric : 'org.robolectric:robolectric:3.3',
mockito : "org.mockito:mockito-core:2.19.0",
json : "org.json:json:20160810",
supportAnnotations: 'androidx.annotation:annotation:1.0.0',
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion",
]