How do I locally switch to a modified version of a connector?

I need to add a feature to an existing connector, in my case the MongoDB source v2.

I’ve modified the spec.json and the java code. I can build the connector, but I don’t know how to test my changes through the UI.

What I would like to accomplish is, I would like to run airbyte on localhost, and see the additions to the source configuration (spec.json) and I’d like to test that the implementation actually works.

What are the steps to do that?

Hey once you have made the changes you can build the connector

  1. ./gradlew :airbyte-integrations:connectors:source-custom-name:build
  2. Then you can tag the image
  3. Add it as a custom connector in the UI → settings → source → custom connector

Ah, so even if the docker isn’t published anywhere, as long as I have built it locally, I can add it there. Nice! Also, I believe the gradle command automatically tagged it with dev. Thanks!