I'm setting up a JVM repo. I'm trying to get the P...
# general
d
I'm setting up a JVM repo. I'm trying to get the Pants -> BSP -> Intellij integration working. It seems to be registering source targets correctly, but it's not picking up jvm_artifact targets as best as I can tell. I have the addresses for the corresponding jvm_artifact targets listed in my bsp-groups.toml file. Is this supported?
I have a resolve named
java8
. If I set
resolve = "java8"
in bsp-groups.toml, it gets made at me because I'm missing a filter. If I do
resolve = "jvm:java8"
, it's happy again However, if I do
resolve = "jvm:somethingthatdoesntexist"
it is also happy This seems to indicate that it's not doing any real work
I'm using Pants 2.22.1
And I just have three targets:
java_sources
,
junit_tests
, and
jvm_artifact
. The first two targets just generate a single target (only one source file in each). The
junit_tests
is specifying a dependency on the
jvm_artifact
. So theorectially, I should see this pop up in Intellij when syncing with BSP, but nothing happens
Are there any known issues with Pants and Java 21? I have a very basic Java class + test which compile fine with Java 8, but using
jdk="zulu:21.0.5"
just results in the compilation hanging