-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dependencies.kt
56 lines (47 loc) · 1.87 KB
/
Dependencies.kt
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
import org.gradle.api.JavaVersion
object Versions {
val java = JavaVersion.VERSION_1_8
const val commonsText = "1.9"
const val coroutines = "1.4.3"
const val dependencyUpdate = "0.38.0"
const val dokka = "1.4.30"
const val dom4j = "2.1.3"
const val graal = "21.0.0.2"
const val hamcrest = "1.3"
const val hamkrest = "1.8.0.1"
const val hocon = "1.4.1"
const val jacksonMinor = "2.12"
const val jackson = "$jacksonMinor.2"
const val jacoco = "0.8.6"
const val jaxen = "1.2.0"
const val jgit = "5.11.0.202103091610-r"
const val jmh = "1.25.2"
const val jmhPlugin = "0.5.3"
const val junit = "5.7.1"
const val junitPlatform = "1.7.1"
const val kotlin = "1.4.32"
const val kotlinApi = "1.4"
const val kotlinLanguage = "1.4"
const val reflections = "0.9.12"
const val slf4j = "1.7.30"
const val spark = "2.9.3"
const val spek = "1.1.5"
const val spotless = "5.11.1"
const val taskTree = "1.5"
const val toml4j = "0.7.2"
const val yaml = "1.28"
// Since 1.8, the minimum supported runtime version is JDK 11.
const val googleJavaFormat = "1.7"
const val ktlint = "0.41.0"
}
fun String?.withColon() = this?.let { ":$this" } ?: ""
fun kotlin(module: String, version: String? = null) =
"org.jetbrains.kotlin:kotlin-$module${version.withColon()}"
fun spek(module: String, version: String? = null) =
"org.jetbrains.spek:spek-$module${version.withColon()}"
fun jackson(scope: String, module: String, version: String? = null) =
"com.fasterxml.jackson.$scope:jackson-$scope-$module${version.withColon()}"
fun jacksonCore(module: String = "core", version: String? = null) =
"com.fasterxml.jackson.core:jackson-$module${version.withColon()}"
fun junit(scope: String, module: String, version: String? = null) =
"org.junit.$scope:junit-$scope-$module${version.withColon()}"