Skip to content

Commit

Permalink
Fix issue loading project into IDE (#4077)
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
rli committed Dec 21, 2023
1 parent 264340c commit 9fd13eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinResolution.settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencyResolutionManagement {
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").get()) {
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")
Expand Down

0 comments on commit 9fd13eb

Please sign in to comment.