-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (100 loc) · 2.87 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: 'com.vanniktech.android.junit.jacoco'
buildscript {
ext.versions = [
espresso: '3.0.2',
testRules: '1.0.2',
kotlin: '1.3.50',
]
ext.deps = [
'kotlin': [
'stdlib': "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
],
'support': [
'test': [
'espresso': [
'core': 'androidx.test.espresso:espresso-core:3.1.0',
],
'runner': 'androidx.test:runner:1.1.0',
'rules': 'androidx.test:rules:1.1.0',
],
],
'fastLaneScreenGrab': "tools.fastlane:screengrab:1.2.0",
]
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.19.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.15.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.24.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
codeQualityTools {
lint {
textReport = true
}
checkstyle {
toolVersion = '8.7'
}
pmd {
toolVersion = '6.0.1'
}
ktlint {
toolVersion = '0.34.2'
}
detekt {
toolVersion = '1.0.1'
}
errorProne {
toolVersion = '2.1.2'
}
}
junitJacoco {
// Don't care about sample and generated modules
ignoreProjects = ['app', 'emoji-ios', 'emoji-google', 'emoji-twitter', 'emoji-compat', 'emoji-kotlin']
}
subprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
ext {
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
leakCanaryVersion = '2.0-beta-3'
versionCode = VERSION_CODE
versionName = VERSION_NAME
supportAppCompat = "androidx.appcompat:appcompat:1.1.0"
supportV4CoreUi = "androidx.legacy:legacy-support-core-ui:1.0.0"
supportV4Compat = "androidx.core:core:1.0.0"
supportRecyclerView = "androidx.recyclerview:recyclerview:1.0.0"
supportCardView = "androidx.cardview:cardview:1.0.0"
supportAnnotations = "androidx.annotation:annotation:1.0.0"
supportEmoji = "androidx.emoji:emoji-appcompat:1.0.0"
supportEmojiBundled = "androidx.emoji:emoji-bundled:1.0.0"
leakCanaryDebug = "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
testing = [
junit : 'junit:junit:4.13-beta-3',
robolectric : 'org.robolectric:robolectric:4.3',
privateConstructor: 'com.pushtorefresh.java-private-constructor-checker:checker:1.2.0',
assertJ : 'org.assertj:assertj-core:2.9.1'
]
javaVersion = JavaVersion.VERSION_1_7
}
wrapper {
gradleVersion = '5.6.2'
distributionType = Wrapper.DistributionType.ALL
}
subprojects {
task allDependencies(type: DependencyReportTask) {}
}