Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-builder-ng / okhttp dependency issue #731

Open
pdorrestijn opened this issue Jul 17, 2024 · 3 comments
Open

http-builder-ng / okhttp dependency issue #731

pdorrestijn opened this issue Jul 17, 2024 · 3 comments

Comments

@pdorrestijn
Copy link

duplicate of #679
But since that one is pretty old and no fix has been provided, workaround does not appear to work and thus I can no longer build my project documentation...

This dependency comes from https://github.com/http-builder-ng which is in fact archived since 2022!
Please can anyone fix this whole dependency chain which is bound to give even more issues?

@pdorrestijn pdorrestijn changed the title okhttp dependency issue http-builder-ng / okhttp dependency issue Jul 17, 2024
@pdorrestijn
Copy link
Author

pdorrestijn commented Jul 17, 2024

With help of Mr. Haki:

buildscript {
    configurations.classpath {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            if (details.requested.group == 'com.burgstaller' && details.requested.name == 'okhttp-digest' && details.requested.version == '1.10') {
                details.useTarget "io.github.rburgst:${details.requested.name}:1.21"
                details.because 'Dependency has moved'
            }
        }
    }
}

@ysb33r
Copy link
Member

ysb33r commented Jul 18, 2024

For 4.x you should be able to the around the problem by adding the following line to the plugins {} block:

id 'org.ysb33r.jruby.resolver' version '1.0.2' apply false 

@pdorrestijn
Copy link
Author

Thnx @ysb33r, as 4.x has some changes requiring docs to use different keywords for certain stuff, I will keep you solution in mind once I've fixed those changes.
Would be wise though to replace http-builder-ng for some other library in due time.
Since it's archived and no longer maintained since 2022, it is bound to give more problems in the future.

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

No branches or pull requests

2 participants