io.github.sjacek.shardpilot
Owner:
Jacek Sztajnke
Duration-balanced class-level test sharding for Gradle, without a coordinator.
Version 0.4.0 (latest)
Created 05 November 2026.
ShardPilot helps shorten CI feedback for large JVM unit and integration test suites by splitting Gradle Test tasks into deterministic, non-overlapping class-level shards for parallel CI jobs. It balances class families using historical test durations, with stable hashing when timing data is unavailable. Works with existing JUnit Jupiter, Spock and TestNG tasks while preserving nested test families and configured test filters. Optional per-task controls set worker heap size, parallel forks and process recycling. Opt-in YAML class manifests and standalone JSON and HTML reports compare planned assignments with class selections collected from CI jobs. Opt-in history refresh creates candidate TSV and JSON from existing JUnit XML without rerunning tests or modifying maintained history. Supports Gradle Configuration Cache and any CI provider without a coordinator, replacement test runner or telemetry. Your CI launches every shard and collects the results; class-selection verification complements normal test result checks.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.sjacek.shardpilot") version "0.4.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("io.github.sjacek.shardpilot:io.github.sjacek.shardpilot.gradle.plugin:0.4.0") }It can then be applied in the precompiled script plugin:plugins { id("io.github.sjacek.shardpilot") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.sjacek.shardpilot:io.github.sjacek.shardpilot.gradle.plugin:0.4.0") } } apply(plugin = "io.github.sjacek.shardpilot") - Applying plugins to all subprojects .