Git Product home page Git Product logo

Comments (2)

shs96c avatar shs96c commented on June 27, 2024

You don't need to do this. All you need to do in your root module is to add a maven.install(name = "workspace-name-to-override", repositories = [...])

You can also use the downloader config option to rewrite remote requests. This "things download from unexpected places" problem is exactly what it was designed to solve.

from rules_jvm_external.

darkrift avatar darkrift commented on June 27, 2024

You don't need to do this. All you need to do in your root module is to add a maven.install(name = "workspace-name-to-override", repositories = [...])

You can also use the downloader config option to rewrite remote requests. This "things download from unexpected places" problem is exactly what it was designed to solve.

The problem with the maven install is that with various tools usage (openapi generator, libraries for tests which run independently with rules_itest, etc), I'm isolating them from each other and from the "production" code that lives in the monorepo.

I currently have 3 different maven.install and soon to be more where I have to repeat the same repository setting instead of having this set globally for all of them.

The downloader config option is one thing but while it looks like a valid option I find it rather non-obvious where your artifacts are coming from when you look at the MODULE.bazel file and you need to know that bazel as such "override" mechanism. Imo, not a great DX. It does address the point for rules that don't have such an override mechanism directly in MODULE.bazel though or the language specific configs.

from rules_jvm_external.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.