ancient-beard-76775
11/07/2024, 7:18 PM3rdparty/jvm
seems to work. is there any way to specify multiple artifacts within a single BUILD
file?billowy-vegetable-62104
11/07/2024, 8:34 PMname
attribute in each.
I also saw this pattern in some repositories:
└── 3rdparty
├── jvm
├── junit
| └── junit
| └── BUILD
└── google
└── guava
└── BUILD
ancient-beard-76775
11/07/2024, 9:14 PMbroad-processor-92400
11/07/2024, 9:47 PMjvm_artifacts()
target in the BUILD file next to it also works (https://www.pantsbuild.org/prerelease/docs/jvm/java-and-scala#pomxml)
Another pattern used is putting the artifacts in the closest parent of the code, e.g. if you have all the scala code in scala/src/...
putting the 3rd party deps in scala/BUILD
is common.ancient-beard-76775
11/07/2024, 10:15 PMpom.xml
, but putting it near the sources makes sense 👍