Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
[fix] Add class jars generated during annotation processing
Browse files Browse the repository at this point in the history
It would also be possible to pass source jars, but there's no clear way
how it should be handled in BSP

https://bazel.build/rules/lib/JavaInfo#JavaInfo
  • Loading branch information
Tomasz Pasternak committed Apr 5, 2023
1 parent dc2d578 commit cf18c8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class JavaLanguagePlugin(
}.map(bazelPathsResolver::resolveUri)
val mainClass = getMainClass(this)
val runtimeClasspath = bazelPathsResolver.resolveUris(runtimeClasspathList)
val compileClasspath = bazelPathsResolver.resolveUris(compileClasspathList)
val compileClasspath = bazelPathsResolver.resolveUris(compileClasspathList + generatedJarsList.flatMap { it.binaryJarsList })
val sourcesClasspath = bazelPathsResolver.resolveUris(sourceClasspathList)
val ideClasspath = resolveIdeClasspath(Label(targetInfo.id),
bazelPathsResolver,
Expand Down

0 comments on commit cf18c8a

Please sign in to comment.