Skip to content

Commit 630539c

Browse files
committed
Filter out source jars during local artifact stdlib resolution
1 parent 7effca1 commit 630539c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/kotlin/org/javacs/kt/classpath/BackupClassPathResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private fun tryFindingLocalArtifactUsing(@Suppress("UNUSED_PARAMETER") group: St
3333
val expected = "${artifact}-${version}.jar"
3434
name == expected
3535
}
36-
else -> name.startsWith(artifact) && name.endsWith(".jar")
36+
else -> name.startsWith(artifact) && ("-sources" !in name) && name.endsWith(".jar")
3737
}
3838
}
3939
return Files.list(artifactDirResolution.artifactDir)

0 commit comments

Comments
 (0)