https://pantsbuild.org/ logo
#general
Title
# general
w

witty-family-13337

03/10/2022, 10:28 AM
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

witty-crayon-22786

03/10/2022, 6:35 PM
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