-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (48 loc) · 1.41 KB
/
build.gradle
File metadata and controls
57 lines (48 loc) · 1.41 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
versionMajor = 1
versionMinor = 0
versionPatch = 0
versionBuild = 0 // bump for dogfood builds, public betas, etc.
versionCode = versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
kotlin_version = "1.3.71"
nav_version = "2.3.0-alpha04"
lifecycle_version = "2.2.0"
room_version = "2.2.5"
retrofit_version = "2.7.2"
}
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:3.6.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.google.android.gms:oss-licenses-plugin:0.10.2"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.2.1"
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
ktlint {
android = true
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: "org.jlleitschuh.gradle.ktlint"