forked from vanniktech/Emoji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (75 loc) · 1.72 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
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: 'com.vanniktech.android.junit.jacoco'
buildscript {
ext.versions = [
kotlin: '1.4.0',
]
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.20.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.12.0'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.29.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'
}
cpd {
enabled = false
}
}
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 = 21
compileSdkVersion = 29
targetSdkVersion = 29
versionCode = VERSION_CODE
versionName = VERSION_NAME
testing = [
junit : 'junit:junit:4.13',
assertJ : 'org.assertj:assertj-core:2.9.1',
]
}
wrapper {
gradleVersion = '6.5.1'
distributionType = Wrapper.DistributionType.ALL
}
subprojects {
project.plugins.withId("com.android.library") {
project.android.buildFeatures.buildConfig = false
}
}