Skip to content

Add Gradle Kotlin DSL build resources to JUnit change detection #1699

@char-yb

Description

@char-yb

Spring Modulith's Change-Aware Test Execution already backs off when build resources change, as those changes can affect test selection independently from application source changes.

Gradle Kotlin DSL projects can express build behavior through additional build resources such as:

  • gradle/libs.versions.toml
  • gradle/wrapper/gradle-wrapper.properties
  • buildSrc/**
  • build-logic/**
  • convention scripts such as *.gradle.kts

Those files should be treated as build resources as well, so that JUnit change detection conservatively falls back to full test execution when build configuration or custom build logic changes.

Kotlin application sources such as src/main/kotlin/** and src/test/kotlin/** should continue to be classified as source changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions