-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
110 lines (92 loc) · 4.61 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
ext.android_versions = [
min_sdk : 17,
target_sdk : 27,
build_tools: '27.0.3',
compile_sdk: 27
]
ext.versions = [
// Common
kotlin : '1.2.30',
kotlin_serialization_version : '0.4.2',
// Jvm
jackson : '2.9.4',
okhttp : '3.10.0',
retrofit2 : '2.4.0',
rxjava2 : '2.1.10',
retrofit2_kotlin_serialization_converter: '0.0.1',
// Android
android_gradle_plugin : '3.0.1',
android_support : '27.1.0',
constraint_layout : '1.0.2',
// iOS
kotlin_native : '0.6.1',
// Spring
spring_boot : '2.0.0.RELEASE'
]
ext.deps = [
kotlin : [
stdlib : [
common: "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
jdk : "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
],
test : [
common: ["org.jetbrains.kotlin:kotlin-test-common:${versions.kotlin}",
"org.jetbrains.kotlin:kotlin-test-annotations-common:${versions.kotlin}"],
jdk : ["org.jetbrains.kotlin:kotlin-test:${versions.kotlin}",
"org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}"]
],
serialization: [
common: "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:${versions.kotlin_serialization_version}",
jdk : "org.jetbrains.kotlinx:kotlinx-serialization-runtime:${versions.kotlin_serialization_version}"
],
reflect : "org.jetbrains.kotlin:kotlin-reflect:${versions.kotlin}",
],
// Jvm
rxjava2 : "io.reactivex.rxjava2:rxjava:${versions.rxjava2}",
retrofit2 : ["com.squareup.retrofit2:retrofit:${versions.retrofit2}",
"com.squareup.retrofit2:adapter-rxjava2:${versions.retrofit2}",
"com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:${versions.retrofit2_kotlin_serialization_converter}"],
okhttp3 : ["com.squareup.okhttp3:okhttp:${versions.okhttp}",
"com.squareup.okhttp3:logging-interceptor:${versions.okhttp}"],
jackson_module_kotlin: "com.fasterxml.jackson.module:jackson-module-kotlin:${versions.jackson}",
// Android
android_support : [
"com.android.support:appcompat-v7:${versions.android_support}",
"com.android.support.constraint:constraint-layout:${versions.constraint_layout}"
],
// Spring
spring_boot : [
web : "org.springframework.boot:spring-boot-starter-web:${versions.spring_boot}",
test: "org.springframework.boot:spring-boot-starter-test:${versions.spring_boot}"
]
]
repositories {
google()
jcenter()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.android_gradle_plugin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:${versions.kotlin_serialization_version}"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${versions.kotlin_native}"
classpath "org.jetbrains.kotlin:kotlin-allopen:${versions.kotlin}"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${versions.spring_boot}"
}
}
apply plugin: 'base'
subprojects {
group = 'digital.wup.superheroapp'
version = '1.0.0-SNAPSHOT'
repositories {
jcenter()
google()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
}
}
clean {
delete project.buildDir
}