question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pulling Fuel from Central complains about missing Result, due to missing version

See original GitHub issue

Bug Report

Description

When using central and using Fuel this way:

repositories {
    mavenCentral()
}
dependencies {
    implementation("com.github.kittinunf.fuel:fuel:+")
    implementation("com.github.kittinunf.fuel:fuel-coroutines:+")
    implementation("com.github.kittinunf.fuel:fuel-gson:+")
}

Gradle complains:

* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.github.kittinunf.result:result:2.2.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/github/kittinunf/result/result/2.2.0/result-2.2.0.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project : > com.github.kittinunf.fuel:fuel:2.2.3

This is caused by the fact that the first version of Result published on Central (thanks to kittinunf/result#70) is 3.0.1.

Proposed solution

I suggest tackling this in two rather straightforwards steps:

  1. Make the current Fuel depend on Result 3.0.1
  2. Release a new version of Fuel

Since Central enforces a no-retract policy, it’s impossible to change the current version to point to Result 3.0.1, a new release is thus necessary.

Alternate solution

Manually releasing result 2.2.0 on Central would work as well, but that requires manual intervention, and thus precious human time.

Temporary workaround

Who is currently using Fuel via Central can work around the issue by enforcing a compile-time dependency on Result (warning: it taints the dependency tree)

dependencies {
    implementation("com.github.kittinunf.result:result:3.0.1")
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kittinunfcommented, Aug 9, 2020

@nfrankel Let me help you out by manually pushing 2.2.0 to the maven central 🙇

0reactions
kittinunfcommented, Sep 28, 2020

I think this should solve all of the problem regarding to version on mavenCentral. 🙇 🙇 Feel free to re-open if this doesn’t fix your issue. Otherwise, please let me close this. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lost or Stolen Credit, ATM, and Debit Cards | Consumer Advice
Confirm that you reported the fraudulent charge or withdrawal. Include the date and time when you noticed your card was missing, and when...
Read more >
One of three missing Hart children is found dead after plunge ...
The remains of a missing Hart family child is recovered in waters along the California coast, three weeks after the family's SUV was...
Read more >
Missing fuel cap leads to missing fuel - General Aviation News
After landing, we inspected the aircraft and discovered our right tank fuel cap missing. It was present during our preflight.
Read more >
1904.5 - Determination of work-relatedness.
The injury or illness is solely the result of an employee doing personal tasks (unrelated to their employment) at the establishment outside of...
Read more >
Family Assistance Questions - TN.gov
Getting a SNAP (Food Stamps) or TANF (Families First) application ... If you missed your appointment and were asked to reschedule, please call...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found