https://kotlinlang.org logo
#compose
Title
# compose
d

dorche

02/09/2023, 8:26 PM
I’m not sure this is the best channel for this but I didn’t find a better one. Has anyone managed to have RenovateBot update Kotlin and Compose Compiler together (KSP too as it depends on Kotlin version) ? Seems like it should be possible and sounds like this will be the usual use case for everyone… There are some discussions here but none of the configs mentioned really work. Does anyone have a config they could share that can be used on most/all projects?
Unfortunately - renovate bot does not detect compose compiler updates for me 😞
but the last item in packageRules is probably what are you looking for
d

dorche

02/09/2023, 9:18 PM
Thanks for the link! Doesn't the first group "all-dependencies" mean that you get all updates together so it defeats the purpose of other ones? I have no Dashboard (not using GitHub sadly) so I'm not sure how these groups work for the bot itself with dashboard..
m

Mustafa Ozhan

02/09/2023, 10:09 PM
Unfortunately - renovate bot does not detect compose compiler updates for me
Hey you can check here I got it working: https://github.com/renovatebot/renovate/issues/18354
d

dorche

02/09/2023, 10:14 PM
Nice one! But that would still update it independently, not in 1 PR together with Kotlin version, right? (unless we find that magic renovate config that will bundle them..)
m

Mustafa Ozhan

02/09/2023, 10:14 PM
if you combine the solution from Jakub and mine it should work
Jakub has issue on updating kotlinCompiler, the workaround I send solves his issue
d

dorche

02/09/2023, 10:16 PM
Right okay, I'll give it a go tomorrow and see what I get with Jakub's config and your workaround
m

Mustafa Ozhan

02/09/2023, 10:27 PM
Just did it, it is working! Here is the PR from renovate that updates kotlin, composeCompiler and ksp together: https://github.com/Oztechan/CCC/pull/1977
s

Stylianos Gakis

02/10/2023, 5:58 AM
In the part
"groupName": "kotlin"
what does
kotlin
refer to? Is it that the name inside libs.versions has to be named “kotlin” or something else? Also about the
"matchPackagePatters"
part, where you prepend a
^
before “org.jetbrains.kotlin” and so on, are there docs referring to what that does and what other options exist?
m

Mustafa Ozhan

02/10/2023, 7:35 AM
"groupName": "kotlin"
groups all the matching dependencies in
matchPackagePatters
into 1 PR so that you will not have seperate PR for each, which probably will fail when they are individually incremented. I think for more information you should check documentation of renovate: https://docs.renovatebot.com/configuration-options/#packagerules
s

Stylianos Gakis

02/10/2023, 7:37 AM
Aha so “kotlin” there is just a string to name the PR with, doesn’t hold any other significance. That’s what the docs seem to mention here. Thanks a lot for the pointer 😊
m

Mustafa Ozhan

02/10/2023, 7:39 AM
ohh yes the
kotlin
is the name of the group, so it will be an identifier in the PR title 🙂
j

Jakub Syty

02/10/2023, 9:34 AM
I guess the kotlin group name wasn't the best choice, but you get the idea 🙂
@Mustafa Ozhan Thank's for the workaround, works like a charm !
4 Views