File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
integrations/intellij-platform/src/main/kotlin/org/jetbrains/kotlinx/jupyter/intellij Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import org.jetbrains.kotlinx.jupyter.api.exceptions.ReplUnwrappedExceptionImpl
1616import org.jetbrains.kotlinx.jupyter.api.libraries.dependencies
1717import org.jetbrains.kotlinx.jupyter.intellij.utils.PluginRequest
1818import org.jetbrains.kotlinx.jupyter.intellij.utils.collectJars
19+ import org.jetbrains.kotlinx.jupyter.intellij.utils.excludeUnwantedClasspathEntries
1920import org.jetbrains.kotlinx.jupyter.intellij.utils.extract
2021import org.jetbrains.kotlinx.jupyter.intellij.utils.resolveCompatibleVersion
2122import java.nio.file.Path
@@ -42,6 +43,7 @@ fun ScriptTemplateWithDisplayHelpers.loadBundledPlugins(vararg pluginIds: String
4243 .mapNotNull { ide.findPluginById(it) ? : ide.findPluginByModule(it) }
4344 .flatMap { it.classpath.paths }
4445 .toSet()
46+ .excludeUnwantedClasspathEntries()
4547
4648 USE {
4749 dependencies {
@@ -77,7 +79,7 @@ fun ScriptTemplateWithDisplayHelpers.loadPlugins(
7779 if (loadClasses) {
7880 USE {
7981 dependencies {
80- for (path in plugin.pluginPath.collectJars()) {
82+ for (path in plugin.pluginPath.collectJars().excludeUnwantedClasspathEntries() ) {
8183 implementation(path.invariantSeparatorsPathString)
8284 }
8385 }
You can’t perform that action at this time.
0 commit comments