Skip to content

Issue discovered on buildSrc/build.gradle with Update Gradle wrapper #6833

@timtebeek

Description

@timtebeek

Problem

Seeing this dependency added across the board, where it likely isn't needed everywhere.

Expected behavior

Dependency only added when absolutely needed.

Example diff

From: buildSrc/build.gradle

     testImplementation 'org.assertj:assertj-core:3.27.7'
testImplementation 'org.mockito:mockito-core:3.12.4'
testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
+	testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.14.3"
testImplementation 'com.squareup.okhttp3:mockwebserver:3.14.9'
}

Recipes in example diff:

  • org.openrewrite.gradle.UpdateGradleWrapper
  • org.openrewrite.gradle.AddDependency

References:

  • View original result
  • Recipe ID: org.openrewrite.gradle.UpdateGradleWrapper
  • Recipe Name: Update Gradle wrapper
  • Repository: spring-projects/spring-session/main
  • Created at Thu Feb 26 2026 16:18:52 GMT+0100 (Central European Standard Time)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions