It seems like refreshVersions is using an older ve...
# refreshversions
d
It seems like refreshVersions is using an older version of apache's HttpClient, since it's causing a clash with versions Google's Jib tool... it might be worth it to upgrade...
l
refreshVersions isn't directly depending on that, but it looks like the GCS library from Google is. See https://github.com/jmfayard/refreshVersions/issues/361
It looks like we'll need to come up with a way to not directly depend on it. I wish it was simpler…
d
A temporary workaround seems to be to put this in settings.gradle.kts:
Copy code
plugins {
    id("com.google.cloud.tools.jib") version "3.1.1" apply false
    id("de.fayard.refreshVersions") version "0.10.1"
}
l
Yes, I think it'd be more helpful in the issue comments 😉
d
Added. But it's a hard-hit, it took me a whole day of work to find the culprit... and that issue didn't pop up in any of my google searches. I think maybe it should go in the release notes...
At least until it gets fixed. Jib is a pretty important plugin for those deploying to k8s.
l
Where did you look at the release notes? GitHub releases, website or CHANGELOG.md on the main branch?
d
I think on the site. I usually pay attention to announcements on slack like: https://kotlinlang.slack.com/archives/CP5659EL9/p1620988947036100 and go to those links to see if I should update
l
Aaaah, that's zillions of channels 😅
I'd prefer to find a workaround that we can implement in refreshVersions this week
If you have an idea, please comment in this issue, I'm keeping an eye on it.
FYI, if you know which transitive dependency is the culprit exactly, we can set it explicitly so there's no
NoClassDefFoundError
because of the version brough by GCS
d
Not for everything... only certain deps 😊. For others I look at refreshVersions and look at the more dangerous deps. refreshVersions doesn't come out so often, so it's easier with the channel. The Apache http client that the google client depends on is the culprit.
l
Do you have the maven coordinates ?
Sorry for lazyweb-ing 😅
Those are their versions
l
Wow, they would benefit from having refreshVersions!
d
I😁