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

refined-hydrogen-47967

04/19/2023, 3:40 AM
Hi, I would like to specify a classifier for a jvm_artifact. It seems like this is legal syntax but I'm curious if that's intentional.
Copy code
jvm_artifact(
    name="hadoop-common_test",
    group="org.apache.hadoop",
    artifact="hadoop-common",
    version="2.7.3:test",
    resolve="jvm-default",
)
Where the classifier "test" is appended to the version string. Is this the recommended method for specifying a classifier? In Pants v1 there's a classifier field for jars in a jar_library so I'm also wondering if there was a reason for that not being supported in jvm_artifact.
4 Views