Skip to content

Commit

Permalink
Exclude kotlin-reflect and kotlin-test from the runtime if kotlin is …
Browse files Browse the repository at this point in the history
…used in plugin

Fixes #585
  • Loading branch information
zolotov committed Mar 11, 2021
1 parent 0fc884d commit 99d2a48
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ class IdeaDependencyManager {
}

static boolean isKotlinRuntime(name) {
return 'kotlin-runtime' == name || 'kotlin-reflect' == name || name.startsWith('kotlin-stdlib')
return 'kotlin-runtime' == name ||
name == 'kotlin-reflect' || name.startsWith('kotlin-reflect-') ||
name == 'kotlin-stdlib' || name.startsWith('kotlin-stdlib-') ||
name == 'kotlin-test' || name.startsWith('kotlin-test-')
}

@NotNull
Expand Down

0 comments on commit 99d2a48

Please sign in to comment.