Skip to content

Commit

Permalink
[fix] Add class jars generated during annotation processing (#372)
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
tpasternak committed Apr 5, 2023
1 parent dc2d578 commit 89b0ae0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

## [Unreleased]

### Fixes
- Add class jars generated during annotation processing
| [#372](https://github.com/JetBrains/bazel-bsp/pull/372)

## [2.6.1]

### SECURITY 🚨
Expand Down
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 89b0ae0

Please sign in to comment.