Skip to content
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

Merged
merged 11 commits into from
Feb 15, 2022
Merged

Conversation

yschimke
Copy link
Collaborator

In progress, but validating it works and simplifies routine updates.

Updating to releases would be with

$ ./gradlew versionCatalogUpdate

@yschimke yschimke added android Relates to usage specifically on Android conscrypt Conscrypt related graal GraalVM related labels Feb 12, 2022
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") {
Copy link
Collaborator Author

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?

Copy link
Contributor

@Goooler Goooler Feb 15, 2022

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
      }
    }
    ...
  }

@yschimke yschimke marked this pull request as ready for review February 12, 2022 13:01
gradle/libs.versions.toml Outdated Show resolved Hide resolved
Comment on lines +24 to +25
classpath(libs.gradleplugin.benmanes.versions)
classpath(libs.gradleplugin.littlerobots.vcu)
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Member

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.

Copy link
Contributor

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.

detekt/detekt/pull/4294

Copy link
Collaborator Author

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

Copy link
Member

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"... 🤮

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yschimke Missed removing this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gradle/libs.versions.toml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to usage specifically on Android conscrypt Conscrypt related graal GraalVM related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants