Skip to content

Add tests for buildscript map notation with GString version variables#6780

Closed
Jenson3210 wants to merge 1 commit intomainfrom
test/buildscript-map-notation-upgrade
Closed

Add tests for buildscript map notation with GString version variables#6780
Jenson3210 wants to merge 1 commit intomainfrom
test/buildscript-map-notation-upgrade

Conversation

@Jenson3210
Copy link
Copy Markdown
Contributor

Summary

  • Add tests for UpgradeDependencyVersion handling the legacy buildscript pattern with map notation and GString version variables
  • Tests cover classpath group: '...', name: '...', version: "${varName}" in buildscript dependencies blocks
  • Validates that ext block variables are correctly updated when upgrading versions

Context

These tests were written while investigating a customer report that the Spring Boot 4 migration recipe was not making changes on a build.gradle using the legacy buildscript/apply plugin pattern with map notation dependencies. The investigation confirmed the recipe works correctly for this pattern.

…spath deps

Covers UpgradeDependencyVersion handling of the legacy buildscript pattern where
dependency versions use map notation with GString variable references in ext blocks:
  classpath group: '...', name: '...', version: "${springBootVersion}"

Includes tests for guava and spring-boot-gradle-plugin upgrades.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 20, 2026
@Jenson3210 Jenson3210 closed this Feb 20, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 20, 2026
@Jenson3210 Jenson3210 deleted the test/buildscript-map-notation-upgrade branch February 20, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant