forked from orhanobut/tracklytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (71 loc) · 2.06 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.4.30'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7'
classpath 'org.aspectj:aspectjtools:1.8.10'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
subprojects { project ->
group = GROUP
version = VERSION_NAME
apply plugin: 'checkstyle'
apply plugin: 'maven'
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
source 'src/main/java'
ignoreFailures false
showViolations true
include '**/*.java'
classpath = files()
}
afterEvaluate {
if (project.tasks.findByName('check')) {
check.dependsOn('checkstyle')
}
}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
}
}
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
minSdkVersion = 10
targetSdkVersion = 26
compileSdkVersion = 26
buildToolsVersion = "28.0.3"
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
ext.deps = [
// AspectJ
aspectjRuntime: "org.aspectj:aspectjrt:1.8.10",
aspectjTools : "org.aspectj:aspectjtools:1.8.10",
// Test dependencies
junit : 'junit:junit:4.12',
truth : 'com.google.truth:truth:0.28',
mockito : "org.mockito:mockito-core:1.10.19"
]