-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Adopt Version Catalog and Updates plugin #7075
Conversation
build.gradle.kts
Outdated
@@ -89,28 +94,29 @@ subprojects { | |||
|
|||
val checkstyleConfig: Configuration by configurations.creating | |||
dependencies { | |||
checkstyleConfig(Dependencies.checkStyle) { | |||
checkstyleConfig("com.puppycrawl.tools:checkstyle:9.2") { |
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.
Can move into an afterEvaluate to support?
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.
Yep.
afterEvaluate {
val checkstyleConfig: Configuration by configurations.creating
dependencies {
checkstyleConfig(libs.checkStyle) {
isTransitive = false
}
}
...
}
classpath(libs.gradleplugin.benmanes.versions) | ||
classpath(libs.gradleplugin.littlerobots.vcu) |
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.
Suggest removing these 2 plugins after migration.
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.
Why? They simplify the update process. For me this is more valuable than just refactoring our dependency files.
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.
Once you finish the migration, the littlerobots.vcu
is less helpful, if you want to check updates, using a Gradle init script might be a better solution; if you want to update automatically, can use renovate.
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.
Is there a good sample of the former? It appears to have the same effect, but requires editing files that we currently currently .gitignore.
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.
We're doing renovate on cashapp org. It's... fine. Will hold us over until dependabot decides to wake up and actually support other ecosystems.
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.
Is there a good sample of the former? It appears to have the same effect, but requires editing files that we currently currently .gitignore.
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.
OK, I'll remove the plugins, and wait for someone in Block to configure for this repo.
I can see them coming through now https://github.com/yschimke/okhttp/pulls
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.
Involuntary shudder reading "someone at Block"... 🤮
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.
@yschimke Missed removing this?
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.
Yep - fixed here https://github.com/square/okhttp/pull/7081/files
In progress, but validating it works and simplifies routine updates.
Updating to releases would be with