Buck: maven_repositories configured but... how can i use it?

Created on 5 Oct 2017  路  4Comments  路  Source: facebook/buck

I've seen in the documentation the maven_repositories config (https://buckbuild.com/concept/buckconfig.html#maven_repositories) but i dont find anywhere how can i use this config to get download the dependencies from the maven repository.

I search in the build rules list and find nothing relative to maven. I'm trying to bring my spring-boot project from maven to buck but its hard without documentation...

Most helpful comment

You need to list all of your dependencies and their dependencies, etc.
That's just how Buck works.

All 4 comments

Yeah of course, but it only download a single file, not? What happend with the dependencies of this jar?

I mean, with the maven repo config and a remote_file per first level dependency of my project is enough?

You need to list all of your dependencies and their dependencies, etc.
That's just how Buck works.

@DavidGDD, Buck intentionally explicitly requires all inputs to be explicit and you'd have to create targets for every dependency in your Buck repository. This behavior is by design, although we realize that it complicates imports of Maven dependencies. Ideally Buck would provide a tool for importing Maven dependencies similar to https://docs.bazel.build/versions/master/generate-workspace.html but unfortunately we currently do not have bandwidth to do so.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brettwooldridge picture brettwooldridge  路  7Comments

msridhar picture msridhar  路  8Comments

shybovycha picture shybovycha  路  6Comments

nikhedonia picture nikhedonia  路  4Comments

njlr picture njlr  路  4Comments