Skip to content
CAI
Software that uses CAICheck a score

sbt/sbt-git

60.9

Adequate · 6 November 2026

837

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial project scaffolding and configuration

This change introduces the foundational configuration files for the sbt-git plugin, including a \.gitignore\ to exclude build artifacts, a \.scalafmt.conf\ to enforce code formatting (version 3.11.5), and a \.scala-steward.conf\ to pin dependency updates for JGit and Scala library. It also adds a \LICENSE\ file under the BSD license, a \README.md\ detailing installation and usage for Java 8+, and a \RELEASE.md\ outlining the GitHub Actions release process.

(repo-wide) · high confidence

Removals

Removal of built-in Git plugin and runner abstractions

The \GitPlugin\ and its associated \GitRunner\ implementations (including \JGitRunner\ and \ConsoleGitRunner\) have been removed from the codebase. This eliminates the previously available SBT plugin functionality that allowed builds to interact with Git repositories via JGit or shell commands, meaning users can no longer use the provided \gitRunner\ task or related keys for Git operations within their SBT builds.

src/main/scala · high confidence

Behavioural changes

Introduce configurable Git backend selection (System Git vs JGit)

Users can now choose which Git implementation the plugin uses for reading repository metadata and running operations. The new \git-read-backend\ and \git-operation-backend\ settings allow selecting between the system \git\ executable and the embedded JGit library, with options to prefer system git, use it exclusively, or force JGit. By default, the plugin now prefers the system \git\ executable, falling back to JGit only if system git is unavailable. This change also introduces \ConsoleGitReadableOnly\ and \ConsoleGitRunner\ to handle system git interactions, providing a more consistent and performant experience when the system git is present, while maintaining JGit as a reliable fallback for environments where system git is missing or incompatible.

src/main/scala/com · high confidence

Test coverage

Add scripted tests for git versioning and backend configuration; Added scripted tests for git-versioning scenarios; Added unit tests for SbtGit SCM parsing and Git backend selection.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 62 → 61 (-1.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 74 → 74 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 51 → 53 (+1.3)
  • Readiness 62 → 61 (-1.5)
  • Security 82 → 70 (-12.1)

Resolved (4)

  • Ambiguous Naming: gitBranch and gitCurrentBranch are distinct keys, but the naming is confusing. gitBranch likely refers to the current branch, while gitCurrentBranch might be redundant or refer to a different concept (e.g., the branch being checked out vs the HEAD branch). In most Git contexts, 'branch' implies the current branch. Having both suggests a lack of clarity on what gitBranch represents if gitCurrentBranch also exists.
  • Duplicate Functionality with Different Types: GitRunner and JGitRunner have identical signatures for apply. This suggests that JGitRunner is a specific implementation of a runner, but exposing both as top-level public types with identical signatures creates confusion about which one to use. It implies that GitRunner might be an interface or a generic wrapper, but the signature suggests it's a concrete class.
  • Naming Inconsistency and Duplication: The methods for configuring backends are split into 'Reads' and 'Operations' with parallel naming conventions (useXxxForReads vs useXxxForOperations). This creates a high cognitive load and potential for user error (e.g., setting one but not the other). Furthermore, useSystemGitFirstForReads and useSystemGitFirstForOperations imply a fallback strategy, but the naming doesn't clearly distinguish between 'exclusive' and 'fallback' strategies across the two domains.
  • Redundant Interface/Type Hierarchy: ConsoleGitReadableOnly and JGit are concrete implementations that both implement the same interface GitReadonlyInterface. However, ConsoleGitReadableOnly exposes a public API that is identical to GitReadonlyInterface, making the interface redundant for these specific types. More critically, ConsoleGitReadableOnly is a public type that duplicates the contract of GitReadonlyInterface without adding distinct behavior visible in the signature, suggesting a leaky abstraction or unnecessary public exposure of an implementation detail that should be hidden behind the interface.

New (2)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)
  • Orphaned file (src/main/scala/com/github/sbt/git/JGitRunner.scala)

Changes since last survey

  • 2 commits — 2 feature/other, 0 fixes

By area

  • (repo) — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Merge pull request #411 from scala-steward/update/sbt-1.13.1
  • change: Update sbt, scripted-plugin to 1.13.1

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sbt/sbt-git was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit bb2656764d5b4b1595f5d2fc5f5ef3727eb319f0 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-60d1b390edf0.