-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
71 lines (60 loc) · 2.32 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
buildscript {
final majorVersion = 2
final minorVersion = 0
final patchVersion = 0
final latestSdk = 28
ext.config = [
// Major -> Millions, Minor -> Thousands, Patch -> Hundreds. E.g 1.3.72 == 1,003,072
versionCode: 1000000 * majorVersion + 1000 * minorVersion + patchVersion,
versionName: "$majorVersion.$minorVersion.$patchVersion",
minSdk : 19,
compileSdk : latestSdk,
targetSdk : latestSdk
]
final versions = [
kotlin : '1.3.10',
support : '1.0.0',
material : '1.0.0',
constraintlayout: '2.0.0-alpha2',
junit : '4.12',
atsl : '1.1.0', // Android Testing Support Library
espresso : '3.1.0'
]
ext.deps = [
kotlinGradlePlugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
appcompat : "androidx.appcompat:appcompat:${versions.support}",
material : "com.google.android.material:material:${versions.material}",
annotation : "androidx.annotation:annotation:${versions.support}",
ktx : "androidx.core:core-ktx:${versions.support}",
constraintlayout : "androidx.constraintlayout:constraintlayout:${versions.constraintlayout}",
junit : "junit:junit:${versions.junit}",
atsl : "androidx.test:runner:${versions.atsl}",
espresso : "androidx.test.espresso:espresso-core:${versions.espresso}"
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0-beta03'
classpath deps.kotlinGradlePlugin
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
// temporary solution to fix "javadoc: error - Illegal package name"
tasks.withType(Javadoc).all {
enabled = false
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}