Skip to content

Gradle (Java/Kotlin) support: tracking issue #68

Open

Description

@adityankale190895

DiffCI selects the tests a change affects so AI coding agents (and people) can run them before pushing. It supports JS/TS, Vue, Go and Maven today. Gradle is open for contributors, and it covers most Java and Kotlin projects that Maven doesn't.

First supported setup: a multi-project build declared in settings.gradle or settings.gradle.kts, using project(":name") dependencies and the default src/main / src/test layout, run with ./gradlew :name:test. Selection happens at the subproject level first.

Steps (each is one PR; take any that are unblocked):

  • Map files to Gradle subprojects from include(...) in the settings file and the default source sets
  • Select tests by subproject dependency (implementation project(":core"), api, testImplementation and the equivalent Kotlin DSL)
  • Generate ./gradlew :name:test commands for the selected subprojects
  • Register the adapter in REPOSITORY_ADAPTERS (src/repo/adapters/index.ts) and add it to the release boundary
  • Replay it on one public Gradle repository and publish the report

Ground rules

  • Gradle build files are code, not data. Read them statically and only trust simple, recognisable forms. Anything else — custom sourceSets, convention plugins, buildSrc / build-logic, dependencies built in loops or conditions — records a blockers entry and DiffCI runs the full suite. An empty graph must never look like "nothing affected".
  • Edits to build.gradle(.kts), settings.gradle(.kts), gradle.properties, gradle/libs.versions.toml or the wrapper require full validation in the first version.
  • Don't execute Gradle to fill gaps; the engine doesn't install or run project tooling.
  • Read the adapter guide first; the Maven adapter (src/repo/adapters/maven.ts) is the closest model.
  • Discuss design questions here, so every step stays consistent.

Using Gradle and want to help, or have a repository we could test against? Say so below. 👍 this issue if you'd use it; reactions on the language tracking issues decide what comes after.

Activity

  1. added
    enhancement
    help wanted
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions