Skip to content

Add test for invertMarking with version range precondition#175

Merged
timtebeek merged 1 commit into
mainfrom
tim/invert-markings-precondition
Mar 31, 2026
Merged

Add test for invertMarking with version range precondition#175
timtebeek merged 1 commit into
mainfrom
tim/invert-markings-precondition

Conversation

@timtebeek
Copy link
Copy Markdown
Member

Summary

  • Adds a test demonstrating ModuleHasDependency with invertMarking=true and a version range to identify modules that either use Kotlin 2.3+ or don't use Kotlin at all
  • Verifies three scenarios: old Kotlin (not marked), new Kotlin (marked), and no Kotlin (marked)
  • Confirms the existing invertMarking + version range combination works correctly as a precondition pattern

Test plan

  • All existing ModuleHasDependencyTest tests pass
  • New test passes with the three-module scenario

Demonstrates using ModuleHasDependency with invertMarking=true and a
version range to detect modules that either use Kotlin 2.3+ or don't
use Kotlin at all.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Mar 31, 2026
@timtebeek timtebeek merged commit 5084453 into main Mar 31, 2026
1 check passed
@timtebeek timtebeek deleted the tim/invert-markings-precondition branch March 31, 2026 10:52
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant