Natan
Natan

Reputation: 2054

How to deploy to Maven repo from Bazel

I need to be able to deploy artifacts to Maven repository that were originally built by Bazel. (e.g. java_library Bazel targets) How do I do that?

Upvotes: 2

Views: 1392

Answers (1)

Natan
Natan

Reputation: 2054

You can use graknlabs/bazel-distribution rules:

  1. assemble_maven link - for creating the artifact's jar, pom file, etc...
  2. deploy_maven link - for deployment of artifact to specified maven repository

For more information see Step 3: Setup Bazel configuration in this medium article

Upvotes: 4

Related Questions