Skip to content
CAI
Software that uses CAICheck a score

earldouglas/sbt-war

67.3

Adequate · 6 November 2026

961

lines of production code

Scala

with Java

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial project setup with build configuration and documentation

The repository has been initialized with core project files including a BSD-3-Clause LICENSE, a CONTRIBUTING guide detailing the architecture and release process, and a comprehensive README with usage instructions. Build tooling is configured via .scalafmt.conf (Scala 3 dialect, version 3.11.5) and .scalafix.conf (OrganizeImports, RemoveUnused rules), while development environment support is provided by a shell.nix file defining sbt, Java, and Neovim/Metals dependencies.

(repo-wide) · high confidence

Introduce SbtWar plugin for WAR packaging and server management

The SbtWar plugin is now the standard entry point for building and running web applications. It introduces settings to configure the servlet specification version (defaulting to 6.1), the container port, and the context path. Users can now package their application into a WAR file and start the server using the new \warStart\, \warStartPackage\, \warJoin\, and \warStop\ tasks, with the option to run in quickstart mode or join an existing container session.

src/main/scala/com/earldouglas · high confidence

Removals

Removal of legacy JettyRunner template

The \JettyRunner.scala\ template file has been removed from the project. This file previously provided a mechanism to start, reload, and stop a Jetty server instance for specific versions, handling context deployment and classloader configuration. Its removal indicates that the template-based approach for running Jetty servers is no longer supported or maintained in this location.

src/main/templates · high confidence

Removal of legacy container and web plugin infrastructure

The \Container\, \PluginKeys\, \Runner\, \WebPlugin\, and \WebappPlugin\ source files have been deleted from the project. This removes the underlying implementation for the legacy container management, runner abstraction (supporting Jetty 6/7), and web application deployment settings. Users relying on these specific SBT plugin keys and settings for managing embedded containers or webapp resources will no longer have access to this functionality in this module.

src/main/scala/com/github · high confidence

Behavioural changes

3 commits (0 fixes) modifying runner

A change to existing behaviour in runner — 3 commits, 8 files: “Move the target up to the root target dir”; “war-runner: disable \setClearReferencesObjectStreamClassCaches\ (\#1228)”; “war-runner: set the parent class loader (\#1227)” (refs \#1228, \#1227). Also in this area: Runner now uses embedded Tomcat to serve WARs and in-place webapp components.

runner · medium confidence · unverified

Added Scala 3 compatibility layer for sbt 2.0

A new compatibility module has been added for Scala 3 to support the sbt 2.0 build tool. This implementation adapts internal file handling to sbt 2.0's virtual file system, converting between standard Java files and sbt's HashedVirtualFileRef, and updates the managed JAR and classpath file resolution logic to use the new file converter APIs.

src/main/scala-3 · high confidence

Test coverage

Added scripted test for Servlet 3.0 compatibility; Added scripted tests for WAR package exportJars behavior; Added scripted tests for WAR package manifest attributes; Added scripted tests for WebappComponentsPlugin war tasks; Added scripted tests for warLib exportJars behavior; Added scripted tests for warStart, warStartPackage, and context-path configuration; Added test fixtures for webapp component rendering; Added test template with MUnit-based verification for servlet and runner components; Added tests for WebappComponents and test utilities.

Dependencies

Migrate build infrastructure to SBT 2.0 and modernize plugin configuration

The project's build system has been upgraded to SBT 2.0.10, replacing the legacy \project/Build.scala\ with a modern \project/plugins.sbt\ configuration. This change removes the custom code that generated Jetty runner templates and updates core plugins to their latest versions, including sbt-pgp 2.3.2, sbt-scalafmt 2.6.2, sbt-scalafix 0.14.9, sbt-buildinfo 0.13.2, and sbt-java-formatter 0.14.0.

project · high confidence

Upgrade to Scala 3.8.4 and sbt 2.0.10 with Tomcat 11 support

The build system has been upgraded to Scala 3.8.4 (with cross-compilation support for Scala 2.12.21 and 3.9.0) and sbt 2.0.10 for Scala 3 users. The project now bundles specific WAR runners for Servlet specifications 3.0 through 6.1, utilizing Apache Tomcat Embed versions up to 11.0.25 for the Servlet 6.1 runner. Testing infrastructure has been updated to use MUnit 1.3.6, and the build configuration now explicitly manages Scala library dependencies for both Scala 2 and Scala 3 test scopes.

(dependencies) · high confidence

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 67 → 67 (+0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 64 (-11.6)
  • Architecture 100 → 100 (+0.0)
  • Maturity 63 → 74 (+11.2)
  • Readiness 62 → 62 (+0.0)
  • Security 81 → 81 (+0.0)

Resolved (1)

  • Duplicated block (40 lines × 2) (runner/src/main/java/com/earldouglas/WarRunner.java)

New (2)

  • Duplicated block (50 lines × 2) (runner/src/main/java/com/earldouglas/WarRunner.java)
  • No ADRs found

Changes since last survey

  • 12 commits — 12 feature/other, 0 fixes

By area

  • (root) — 8 commits
  • runner/src — 3 commits
  • src/main — 1 commit

Notable commits

  • change: Add --add-opens args to the forked JVMs
  • change: Fork tests into their own individual JVMs
  • change: Ignore deprecation warnings in the test sources
  • change: Move the target up to the root target dir
  • change: Use a setting to point to the container instance (#1229)
  • change: sbt-war.g6: update giter8 url
  • change: sbt-war: 5.2.2 -> 5.2.3 (#1230)
  • change: sbt: 2.0.10 -> 2.0.11 (#1226)
  • change: sbt: 2.1.0-M3 -> 2.1.0-RC1 (#1222)
  • change: sbt: disable main classes
  • change: war-runner: disable setClearReferencesObjectStreamClassCaches (#1228)
  • change: war-runner: set the parent class loader (#1227)

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

Survey your own repository

earldouglas/sbt-war 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 94937f4d0adb11a4873be8eceef487a2c8444c02 — 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.