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.

Ktor dependency of consumer module doesn't exist publicly yet in version expected by pact

See original GitHub issue

Hello,

I just tried to move to 4.1.0 in a project and hit a dependency resolution failure

The following artifacts could not be resolved: io.ktor:ktor-server-netty:jar:1.3.2, io.ktor:ktor-network-tls-certificates:jar:1.3.2: 
Failure to find io.ktor:ktor-server-netty:jar:1.3.2 in <central proxy repo> ...

This happens because of https://github.com/DiUS/pact-jvm/blob/4_1_0/consumer/build.gradle#L13

The io.ktor dependencies reference 1.3.2 but (as of right now), the latest version available on maven central is 1.3.1 according to:

I’m not exactly sure how this happened. I imagine the machine running the release job somehow got the dependency resolved through another repo where it had been published already?

Not sure what action could be taken ; I suppose something along the lines of ensuring that the build happens on a CI without any other repository but central?

Best regards

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tristan971commented, May 21, 2020

Would not be willing to add other repositories (like bintray) to our main proxy repo, and even less so as part of every single pact-using application’s pom/gradle file.

Don’t think it’s worth going into the pros and cons of central vs others here in general.

In the end, it’s a matter of policy ; and if pact-jvm’s is that dependencies do not necessarily need to be on maven central, then that’s that.

I’ll just wait for it to be eventually synced then.

1reaction
uglyogcommented, May 21, 2020

The KTor github page has 1.3.2 as the latest, and looking at their bintray repo it was published on 12 Mar 2020. I guess they have sync issues with Maven Central.

You can just enable bintray jcenter in your project, and that should resolve the dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ktor dependency of consumer module doesn't exist publicly ...
Hello, I just tried to move to 4.1.0 in a project and hit a dependency resolution failure The following artifacts could not be...
Read more >
Adding client dependencies | Ktor
To use the Ktor HTTP client in your project, you need to configure repositories and add the following dependencies: ktor-client-core.
Read more >
spring boot - Pact consumer contact gives au.com.dius.pact ...
The issue is that your test doesn't send the request to the Pact mock service - that's why you're getting the error "The...
Read more >
CodaLab Worksheets
... US intelligence secretly acknowledged yet took secure his release alleged ... anticipated adult Night Hilton Bonus Sensor Instruments modules screw NI ...
Read more >
C 307 / 1 Journal officiel de l'Union européenne 10.9.2014
Subject: Late payments by public authorities to undertakings: ... Subject: National tax legislation not compatible with fundamental rights.
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