This message was deleted.
# community-support
s
This message was deleted.
e
Kotlin 1.8.20 is not officially released yet. JetBrains will announce when everything is synced to everywhere, as they always do.
thank you 1
v
Besides that, you define
mavenCentral()
as project repository. But what you need is it as plugin respository in your settings script. The default
gradlePluginPortal()
redirects to JCenter for missing libs which forwards to MavenCentral for missing libs. But as MavenCentral has it, but JCenter returns 404, JCenter probably has some cache that remembered it didn't see the file. So either declare MC as additional plugin repository before GPP, or just wait until the cache refreshes. Especially as you should wait anyway until the release process finished as @ephemient said. 🙂
m
About 5 hours ago, Dependabot updated Kotlin from 1.8.10 to 1.8.20 in one of my repos but the branch build failed for the same reason.
v
Yeah, because it is not intelligent. It does not understand that until the blog post is out the release is not finished. It just sees the new version at MavenCentral and creates the PR. It does not even consider from which repository the dependency is pulled obviously.
i
Thx for clarification. Adding mavenCentral to
setting.gradle.kts
did the trick (at this mid release time).
Copy code
pluginManagement {
    repositories {
        gradlePluginPortal()
        mavenCentral()
    }
}
I will see how this will play out with the next Kotlin update. If if will be picked to quickly again I will consider setting Renovate stabilitydays option to delay this update.
v
It is every release that it gets picked up too early and multiple people here or in Kotlin slack complain that it does not properly work.
And I would put MC first. Saves the detour through JCenter for all things directly available on MC and also compensates some of the regular JC outages.
t
Renovate fails all my builds as well, but the weird thing is that it's only JCenter that doesn't have this... https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.8.20/kotlin-scripting-jvm-1.8.20.pom -> 404 https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.8.20/kotlin-scripting-jvm-1.8.20.pom -> OK I though we established that GPP redirects to JC which pulls from MC.
v
Yes, but JCenter gives the 404. Again, it probably has some cache and still thinks it is absent as the cache period didn't expire yet.
t
Ah, of course, caches everywhere 🙂
😂 1
Woohoo, the caches expired! Let there be (successful) builds!
z
you can use
--refresh-versions
flag too
t
For me, it was on GitHub Actions CI, and I think in some of the projects I don't even have Gradle cache.
e
@Zak Taccardi
--refresh-versions
can't force the upstream remote repository to refresh its caches
🤦‍♂️ 1
👍 1
(in theory some CDNs allow custom methods like https://developer.fastly.com/learning/concepts/purging/#single-purge but that doesn't apply here)