Skip to content
CAI
Software that uses CAICheck a score

sbt/flyway-sbt

61.2

Adequate · 7 November 2026

488

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 release of the sbt Flyway plugin

This change introduces the sbt plugin for Flyway, a community-maintained fork of the original flyway-sbt plugin (up to version 4.2.1). The repository adds the core plugin implementation, configuration files (including .scalafmt.conf and .scala-steward.conf), and documentation (README.md) that explains how to enable the plugin via \enablePlugins(FlywayPlugin)\ and configure database connections. It also includes build infrastructure such as CI badges and git ignore rules, establishing the project structure for version 5.0.0.

(repo-wide) · high confidence

Behavioural changes

Added Scala 3 compatibility layer for sbt plugin internals

Introduced new \PluginCompat\ implementations for Scala 3 (\src/main/scala-3/\) to support the sbt 2.x cross-build, defining type aliases for \HashedVirtualFileRef\ and \VirtualFile\ and adapting the \toNioPath\ conversion logic, while maintaining the existing Scala 2.12 (\src/main/scala-2.12/\) compatibility layer using \java.io.File\ and \Attributed\[File\]\.

src/main · high confidence

Migration to flywaysbt package and Flyway 12.0.0 upgrade

The plugin source has been moved from the root package to the flywaysbt package, and the underlying Flyway library has been upgraded to version 12.0.0. This update includes the addition of the flywayValidateMigrationNaming setting, which allows users to configure whether migration files with non-standard naming conventions should be ignored during validation.

repository · high confidence

Test coverage

Add Flyway callback test infrastructure; Add Flyway callback test with Scala application and database migration; Add test for invalid migration naming validation; Added Flyway SBT test fixtures for database migrations; Added integration tests for Flyway SBT plugin commands; Added test case for Flyway execution without classpath dependencies; Added test for Flyway clean and migrate commands.

Dependencies

Upgrade to Flyway 13.9.0 and SBT 2.0.9

The sbt plugin now uses Flyway core version 13.9.0, bringing the latest database migration capabilities and fixes to users of this plugin. The build infrastructure has also been updated to support SBT 2.0.9 for Scala 3 cross-builds, while maintaining SBT 1.9.9 for Scala 2.12, ensuring compatibility with modern Scala versions and the latest sbt release cycle.

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

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 56 → 56 (+0.0)
  • Readiness 52 → 55 (+3.2)
  • Security 82 → 70 (-12.1)

Resolved (1)

  • Duplicate configuration property for the same Flyway feature. 'flywayMixed' is an alias for 'flywayAllowMixedMigrations' in the underlying Flyway library, but exposing both creates redundancy and confusion for the user.

Changes since last survey

  • 6 commits — 6 feature/other, 0 fixes

By area

  • (root) — 3 commits
  • (repo) — 1 commit
  • .github/workflows — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Merge pull request #330 from scala-steward/update/flyway-core-13.11.1
  • change: Update flyway-core to 13.11.1
  • change: Update flyway-core to 13.12.0
  • change: Update flyway-core to 13.12.1
  • change: Update sbt to 2.0.12
  • change: Update sbt-github-actions to 0.32.2 (#329)

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

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/flyway-sbt 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 7 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 48b5782823fc5a64cad64ec957644e3e7bbe9b5a — 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-c34be012586e.