java-infer
Options controlling which dependencies will be inferred for Java targets.
Backend: pants.backend.experimental.java
Config section: [java-infer]
Basic options
default:
True
Infer a target's dependencies by parsing import statements from sources.
default:
True
Infer a target's dependencies by parsing consumed types from sources.
default:
True
Infer a target's third-party dependencies using Java import statements.
third_party_import_mapping
third_party_import_mapping
--java-infer-third-party-import-mapping="{'key1': val1, 'key2': val2, ...}"
PANTS_JAVA_INFER_THIRD_PARTY_IMPORT_MAPPING
default:
{}
A dictionary mapping a Java package path to a JVM artifact coordinate (GROUP:ARTIFACT) without the version.
See jvm_artifact
for more information on the mapping syntax.
Advanced options
None
Deprecated options
None
Updated over 1 year ago