melodic-vase-77901
06/06/2023, 3:24 AMjvm_artifact
?happy-kitchen-89482
06/06/2023, 12:30 PMhappy-kitchen-89482
06/06/2023, 12:30 PMhappy-kitchen-89482
06/06/2023, 12:31 PMmelodic-vase-77901
06/07/2023, 4:45 AMmelodic-vase-77901
06/07/2023, 4:52 AMjvm_artifact
we could check how they did it.happy-kitchen-89482
06/07/2023, 1:55 PMdist
, so maybe this is an export
subcommand?)melodic-vase-77901
06/08/2023, 2:28 AMmaven_install(
artifacts = [
"junit:junit:4.12",
"androidx.test.espresso:espresso-core:3.1.1",
"org.hamcrest:hamcrest-library:1.3",
],
repositories = [
# Private repositories are supported through HTTP Basic auth
"<http://username:password@localhost:8081/artifactory/my-repository>",
"<https://maven.google.com>",
"<https://repo1.maven.org/maven2>",
],
fetch_sources = True
)
I'm completely new to pants so right now to pull deps in my toy project I use pants generate-lockfiles
so I would expect that when I update my dependencies sources are fetched too (at best effort because some libraries do not export them). Ideally sources should be stored next to the lib files so when you import your project with BSP to intellij and navigate to class from external jar when you click choose sources it should be right there. obviously sources for external libs should not be included in final package.happy-kitchen-89482
06/08/2023, 3:03 AMhappy-kitchen-89482
06/08/2023, 3:03 AMgenerate-lockfiles
doesn't exactly "pull deps" - it generates a lockfile. Deps are fetched on demand, based on that lockfile.happy-kitchen-89482
06/08/2023, 3:03 AMmelodic-vase-77901
06/08/2023, 5:28 AMmelodic-vase-77901
06/08/2023, 5:30 AMmelodic-vase-77901
06/08/2023, 5:32 AMmelodic-vase-77901
06/10/2023, 3:41 AMdependencySources
request. Maybe better idea would be to fetch sources only when bsp project is refreshed - when DependencySourcesRequest is sent. coursier_fetch.py could be used to fetch those additional sources. what do you think?