Ktor dependency of consumer module doesn't exist publicly yet in version expected by pact
See original GitHub issueHello,
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:
- https://search.maven.org/artifact/io.ktor/ktor-server-netty/1.3.1/jar
- https://mvnrepository.com/artifact/io.ktor/ktor-server-netty
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:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.