forked from aws/aws-toolkit-jetbrains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkotlinResolution.settings.gradle.kts
33 lines (28 loc) · 1.17 KB
/
kotlinResolution.settings.gradle.kts
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
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
dependencyResolutionManagement {
versionCatalogs {
maybeCreate("libs").apply {
// pull value from IJ library list: https://github.com/JetBrains/intellij-community/blob/<mv>/.idea/libraries/kotlinx_coroutines_jdk8.xml
// or: https://github.com/JetBrains/intellij-community/blob/<mv>/.idea/libraries/kotlinx_coroutines_core.xml
val version = when (providers.gradleProperty("ideProfileName").getOrNull() ?: return@apply) {
"2022.3" -> {
// binary compat issue in tests, but detekt requries at least kotlin 1.8
version("kotlin", "1.8.20")
"1.6.4"
}
"2023.1" -> {
"1.6.4"
}
"2023.2" -> {
"1.7.1"
}
"2023.3", "2024.1" -> {
"1.7.3"
}
else -> { error("not set") }
}
version("kotlinxCoroutines", version)
}
}
}