Skip to content

Remove Feign dependency#3429

Open
pkoenig10 wants to merge 6 commits intopkoenig/feignfrom
pkoenig/feign2
Open

Remove Feign dependency#3429
pkoenig10 wants to merge 6 commits intopkoenig/feignfrom
pkoenig/feign2

Conversation

@pkoenig10
Copy link
Copy Markdown
Member

@pkoenig10 pkoenig10 commented Mar 27, 2026

We currently depend on a very old and not longer maintained version of Feign. Upgrading is tricky because there are a number of subtle behavior changes in the latest version of Feign - see #1337. This code is quite ossified, so even small behavior changes are likely to cause problems.

This is starting to cause conflicts with consumers are also depending on modern version of Feign.

This PR addresses the issue by removing our Feign dependency. This is accomplished by vendoring the code from the version of Feign we currently depend on.

This PR is divided into a series of commits in order to make reviewing easier:

  1. Vendor Feign as is into conjure-java-jaxrs-client

  2. Change the package from feign to com.palantir.conjure.java.client.jaxrs.feign

  3. Remove unused code and suppress warnings

    This includes some small refactors if those refactors allowed us to eliminate more code.

  4. Move all classes to the com.palantir.conjure.java.client.jaxrs

    conjure-java-jaxrs-client currently exposes a lot of it's internals. Changing the interfaces that our classes implement is an already an ABI, so we should take the opportunity to address this deficiency while we are breaking the API.

    There are a small handful of internal consumers that are importing some of the feignimpl classes. But it is small enough (roughly 13 files across 8 repos), that this change should be acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant