forked from danger/kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencyVersions.gradle
61 lines (54 loc) · 1.91 KB
/
dependencyVersions.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
apply from: file('../shadow.gradle')
def group(Closure closure) {
closure.delegate = dependencies
return closure
}
// Utils
ext.utils = [
// Empty
]
ext.utilsDependencies = group {
// Empty
}
project.ext.artifactIdMoshi = 'moshi'
project.ext.versionOkio = '1.16.0'
project.ext.groupIdOkio = 'com.squareup.okio'
project.ext.artifactIdOkio = 'okio'
// Kotlin
project.ext.versionKotlin = '1.5.10'
project.ext.groupIdKotlin = 'org.jetbrains.kotlin'
project.ext.groupIdKotlinx = 'org.jetbrains.kotlinx'
project.ext.artifactIdKotlinMain = 'kotlin-main-kts'
project.ext.artifactIdKotlinSerializationJson = 'kotlinx-serialization-json'
project.ext.artifactIdKotlinDatetime = "kotlinx-datetime"
project.ext.artifactIdKotlinCoroutines = "kotlinx-coroutines-core"
project.ext.versionKotlinSerializationJson = '1.2.1'
project.ext.versionKotlinDatetime = '0.2.0'
project.ext.versionKotlinCoroutines = '1.5.0'
ext.kotlin = [
mainKts: "$groupIdKotlin:$artifactIdKotlinMain:$versionKotlin",
serialization: "$groupIdKotlinx:$artifactIdKotlinSerializationJson:$versionKotlinSerializationJson",
datetime: "$groupIdKotlinx:$artifactIdKotlinDatetime:$versionKotlinDatetime",
coroutines: "$groupIdKotlinx:$artifactIdKotlinCoroutines:$versionKotlinCoroutines"
]
ext.kotlinDependencies = group {
includeJar kotlin.mainKts
includeRecursiveJar kotlin.serialization
includeRecursiveJar kotlin.datetime
includeRecursiveJar kotlin.coroutines
}
// Testing
project.ext.versionJunit = '4.12'
project.ext.groupIdJunit = 'junit'
project.ext.artifactIdJunit = 'junit'
project.ext.versionMockK = "1.10.0"
project.ext.groupIdMockK = "io.mockk"
project.ext.artifactIdMockK = "mockk"
ext.testing = [
junit: "junit:junit:$versionJunit",
mockK: "$groupIdMockK:$artifactIdMockK:$versionMockK"
]
ext.testingDependencies = group {
testImplementation testing.junit
testImplementation testing.mockK
}