-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
85 lines (76 loc) · 2.76 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
buildscript {
ext.versions = [
'compile_sdk' : 31,
'example_compile_sdk' : 33,
'min_sdk' : 24,
'java' : '1.8',
'build_tools' : '30.0.3',
'android_gradle_plugin' : '7.4.2',
'kotlin' : '1.7.20',
'kotlinx_coroutines' : '1.7.1',
'kotlinx_serialization' : '1.5.1',
'maven_publish_plugin' : '0.17.0',
'androidx_activity' : '1.7.2',
'androidx_constraint_layout': '2.1.4',
'androidx_fragment' : '1.6.0',
'androidx_lifecycle' : '2.6.1',
'androidx_navigation' : '2.6.0',
'androidx_recycler_view' : '1.3.0',
'android_three_ten' : '1.4.6',
'app_compat' : '1.6.1',
'core_ktx' : '1.10.1',
'material_design_components': '1.9.0',
'moshi' : '1.15.0',
'okhttp' : '5.0.0-alpha.10',
'retrofit' : '2.9.0',
'junit' : '4.13.2',
'androidx_test_orchestrator': '1.4.2',
'androidx_test_core' : '1.5.0',
'androidx_test_junit' : '1.1.5',
'androidx_test_runner' : '1.5.2',
'espresso' : '3.5.1',
'uiautomator' : '2.2.0',
'ktlint' : '0.49.1',
'cash_app_paykit_sdk' : '2.3.0',
'mockk' : '1.13.5'
]
repositories {
mavenCentral()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.android_gradle_plugin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}"
classpath "com.vanniktech:gradle-maven-publish-plugin:${versions.maven_publish_plugin}"
}
}
subprojects {
repositories {
mavenCentral()
google()
}
group = GROUP
version = VERSION_NAME
configurations {
ktlint
}
dependencies {
ktlint "com.pinterest:ktlint:${versions.ktlint}"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
mainClass = "com.pinterest.ktlint.Main"
args "src/**/*.kt"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
mainClass = "com.pinterest.ktlint.Main"
args "-F", "src/**/*.kt"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}