Repository navigation
Open
Labels
Description
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,testImplementationand the equivalent Kotlin DSL) - Generate
./gradlew :name:testcommands 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 ablockersentry 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.tomlor 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