Hi all, a particular thing that we are noticing i...
# general
w
Hi all, a particular thing that we are noticing in the JVM dependency inference. For example, a
jvm_artifact
definition like this would fail to be recognised as a dependency for other targets:
Copy code
jvm_artifact(
    name="enumeratum",
    group="com.beachape",
    artifact="enumeratum-circe_2.13",
    version="1.7+",
    packages=[
        "enumeratum.*",
        "enumeratum.values.*",
    ],
)
however, if we change the
packages
field to be like the following:
Copy code
packages=[
  "enumeratum.**",
  "enumeratum.values.**",
]
then the dependency gets resolved… what is the difference between the single
*
and the
**
in this context? Is it advised that we always use the
**
for these cases?
w
this is a bit of a rough edge, sorry! but yes: only
**
is currently supported. see https://www.pantsbuild.org/v2.10/docs/reference-jvm_artifact#codepackagescode
this is definitely something that we’d like to polish