Skip to content

Commit 9fd13eb

Browse files
authored
Fix issue loading project into IDE (#4077)
`ideProfileName` is not defined during IDE Gradle import. This might be better resolved by using an alternate property provider but no-op provides the same behavior
1 parent 264340c commit 9fd13eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinResolution.settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencyResolutionManagement {
66
maybeCreate("libs").apply {
77
// pull value from IJ library list: https://github.com/JetBrains/intellij-community/blob/<mv>/.idea/libraries/kotlinx_coroutines_jdk8.xml
88
// or: https://github.com/JetBrains/intellij-community/blob/<mv>/.idea/libraries/kotlinx_coroutines_core.xml
9-
val version = when (providers.gradleProperty("ideProfileName").get()) {
9+
val version = when (providers.gradleProperty("ideProfileName").getOrNull() ?: return@apply) {
1010
"2022.3" -> {
1111
// binary compat issue in tests, but detekt requries at least kotlin 1.8
1212
version("kotlin", "1.8.20")

0 commit comments

Comments
 (0)