-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
85 lines (75 loc) · 2.95 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
subprojects { project ->
group = GROUP
version = VERSION_NAME
}
ext.kotlin_version = '1.3.31'
allprojects {
repositories {
jcenter()
google()
}
buildscript {
repositories {
jcenter()
google()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'io.realm:realm-gradle-plugin:2.2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0'
classpath 'org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.16'
}
}
}
subprojects {
tasks.withType(Javadoc).all { enabled = false }
}
ext {
minSdkVersion = 14
targetSdkVersion = 28
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
project.ext.isCi = "true".equals(System.getenv("CI"))
project.ext.preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries =
rootProject.ext.preDexEnabled && !rootProject.ext.isCi
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries =
rootProject.ext.preDexEnabled && !rootProject.ext.isCi
}
}
def androidxVersion = '1.0.0-beta01'
def gradleIncapHelperVersion = '0.2'
def autoserviceVersion = '1.0-rc5'
ext.deps = [
android: 'com.google.android:android:4.1.1.4',
supportAnnotations: "androidx.annotation:annotation:$androidxVersion",
appCompat: "androidx.appcompat:appcompat:$androidxVersion",
supportTestRunner: 'com.android.support.test:runner:0.5',
javapoet: 'com.squareup:javapoet:1.8.0',
autovalueProcessor: 'com.google.auto.value:auto-value:1.6.5',
autovalueApi: 'com.google.auto.value:auto-value-annotations:1.6.3',
autocommon: 'com.google.auto:auto-common:0.8',
autoserviceProcessor: "com.google.auto.service:auto-service:$autoserviceVersion",
autoserviceApi: "com.google.auto.service:auto-service-annotations:$autoserviceVersion",
javaFormat: 'com.google.googlejavaformat:google-java-format:1.1',
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.30',
compiletesting: 'com.google.testing.compile:compile-testing:0.10',
lombok: "org.projectlombok:lombok:1.16.16",
gradleIncapHelperApi: "net.ltgt.gradle.incap:incap:$gradleIncapHelperVersion",
gradleIncapHelperProcessor: "net.ltgt.gradle.incap:incap-processor:$gradleIncapHelperVersion"
]
task clean(type: Delete) {
delete rootProject.buildDir
}