Refactored Kotlin Test Utilities: Abstracted out duplicate initialization logic by introducing a reusable mock project builder function (createMockProjectBuilder()) natively in the Kotlin integration test suite. This utilizes fluent Kotlin builder patterns to cleanly handle the generation of version catalogs, settings scripts, and mock build properties, drastically reducing boilerplate code across the .kt test files.
Fixed Kotlin DSL Lifecycle Hooks: Migrated the plugin's configuration capture mechanism from whenObjectAdded to configurations.all. This leverages Kotlin lambda blocks to ensure that pre-existing target test configurations are correctly captured and dynamically processed by the Kotlin DSL rather than missed during eager registration.
Robust Kotlin Assertions: Replaced brittle, literal string test assertions with robust Kotlin regex patterns and Kotest matchers capable of dynamically verifying Gradle's dependency resolution arrow syntax style (group:artifact:old -> new).
Kotlin Environmental Fix: Resolved a Gradle TestKit failure (Unsupported class file major version 68) caused by TestKit isolation executing under a global Java 24 environment, by forcing the Kotlin compile tasks and the test runner to target Java 21 compatibility (Major version 65).
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)