New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gradle/manager): add support for Kotlin objects in buildSrc
files
#21892
Conversation
Hi! I need this feature, do you know when it will be released? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except one suggestion
🎉 This PR is included in version 35.78.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Nice 👍 . I just noticed this when |
Hi! I'm trying running renovate and I'm experiencing a problem with lists, it's not recognizing them:
|
Changes
object { ... }
declarations.*.kt
files in thebuildSrc
folderobject { ... }
,mapOf
, ...) hierarchy, renovate preferrably resolve variables in the local scopeExample:
Implementation Notes
extractAllPackageFiles()
inextract.ts
, so ultimately deps are extracted only once/
scope. This is needed because a variable X defined inbuildSrc/some/file.kt
can be referenced from any.gradle
or.gradle.kts
build file.Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via:
Test scenarios
-> https://github.com/renovate-demo/Bandhook-Kotlin/pulls
object Versions { ... }
defined twice in different scopeobject
are then reused in regular.gradle
/.gradle.kts
files