forked from segmentio/analytics-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (60 loc) · 1.75 KB
/
build.gradle
File metadata and controls
75 lines (60 loc) · 1.75 KB
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
apply from: rootProject.file('gradle/versioning.gradle')
buildscript {
ext.kotlin_version = '1.4.0'
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:3.29.0'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:1.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0"
}
}
apply plugin: 'com.vanniktech.android.junit.jacoco'
junitJacoco {
includeNoLocationClasses = true // Used to generate coverage for robolectric tests
}
allprojects {
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
}
apply plugin: 'idea'
repositories {
mavenCentral()
google()
jcenter()
}
group = GROUP
version = getVersionName()
}
def isCI = "true".equals(System.getenv("CIRCLECI"))
def preDexEnabled = "true".equals(System.getProperty("preDex", "true"))
ext {
versionCode = Integer.parseInt(VERSION_CODE)
versionName = getVersionName()
minSdkVersion = 14
minSdkVersionWear = 23
targetSdkVersion = 29
compileSdkVersion = 29
sourceCompatibilityVersion = JavaVersion.VERSION_1_8
targetCompatibilityVersion = JavaVersion.VERSION_1_8
preDexLibraries = preDexEnabled && !isCI
}
ext.deps = [
supportAnnotations: 'androidx.annotation:annotation:1.1.0'
]
apply from: rootProject.file('gradle/promote.gradle')