forked from thellmund/Android-Week-View
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (67 loc) · 2.57 KB
/
build.gradle
File metadata and controls
72 lines (67 loc) · 2.57 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildConfig = [
minSdk : 15,
minSdkJsr310: 26,
compileSdk : 29,
targetSdk : 29
]
versions = [
appCompat : '1.0.2',
emoji : '1.0.0',
jodaTime : '2.10.3',
jodaTimeAndroid: '2.10.2',
jUnit : '4.12',
kotlin : '1.3.50',
threeTen : '1.4.0',
threeTenAbp : '1.2.1',
mockitoCore : '2.28.2',
mockitoInline : '2.28.2'
]
libraries = [
appCompat : "androidx.appcompat:appcompat:${versions.appCompat}",
emoji : "androidx.emoji:emoji-bundled:${versions.emoji}",
jodaTime : "joda-time:joda-time:${versions.jodaTime}",
jodaTimeAndroid: "net.danlew:android.joda:${versions.jodaTimeAndroid}",
jUnit : "junit:junit:${versions.jUnit}",
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
threeTen : "org.threeten:threetenbp:${versions.threeTen}",
threeTenAbp : "com.jakewharton.threetenabp:threetenabp:${versions.threeTenAbp}",
mockitoCore : "org.mockito:mockito-core:${versions.mockitoCore}",
mockitoInline : "org.mockito:mockito-inline:${versions.mockitoInline}"
]
}
repositories {
jcenter()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:8.2.0'
}
}
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs = ['-XXLanguage:+InlineClasses']
}
}
apply plugin: 'org.jlleitschuh.gradle.ktlint'
repositories {
jcenter()
mavenCentral()
google()
}
}