From 9cde0c0843a5fd71b468c707891bc251403f1f90 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 2 Jan 2025 20:00:19 +0100 Subject: [PATCH] bugfix: Don't add single files to classpath Only jars and directories are excepted. In case of resources it will most likely be always a directory. --- frontend/src/main/scala/bloop/data/Project.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/main/scala/bloop/data/Project.scala b/frontend/src/main/scala/bloop/data/Project.scala index da2107c7f..794099751 100644 --- a/frontend/src/main/scala/bloop/data/Project.scala +++ b/frontend/src/main/scala/bloop/data/Project.scala @@ -110,7 +110,8 @@ final case class Project( } def runtimeResources: List[AbsolutePath] = platform match { - case jvm: Platform.Jvm => jvm.resources + case jvm: Platform.Jvm => + jvm.resources.filter(path => path.isDirectory || path.syntax.endsWith(".jar")) case _ => resources }