Skip to content
CAI
Software that uses CAICheck a score

thesamet/sbt-protoc

62.3

Adequate · 7 November 2026

876

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

Add Java-only example with sbt-protoc and protobuf definition

The java-only example now includes a build configuration using sbt version 1.12.11 and the sbt-protoc plugin (version 1.0.8) to handle Protocol Buffers. A sample protobuf definition (test.proto) is provided, defining a simple message with an optional integer field, enabling users to generate Java code from this schema.

examples/java-only · high confidence

Add ScalaJS multiproject example

Added a new example demonstrating a ScalaJS multiproject setup, including a protobuf definition for a test message and a server-side Scala entry point that instantiates and prints this message.

examples/scalajs-multiproject/proto, examples/scalajs-multiproject/server · high confidence

Add common protobuf definition to external-protos example

The multi-with-external-jar example now includes a new protobuf file (common.proto) defining a message named CommonProto within the com.thesamet.protos.common package, providing a shared schema component for the example project.

examples/multi-with-external-jar/external-protos · high confidence

Add scalapb cross-project example

Added a new example demonstrating how to use scalapb with sbt-crossproject to generate code for JVM, JS, and Native targets. The example includes a basic protobuf definition and a Scala entry point to run the generated code across platforms.

examples/scalapb-crossproject · high confidence

Added Google APIs example project with Protobuf definitions

A new example project has been added to demonstrate integration with Google APIs using external JARs. This includes a Protobuf definition file that imports Google's standard timestamp, color, and location types to define a test message structure.

examples/google-apis-external-jar/my-project · high confidence

Added ScalaJS multiproject client example

A new client-side example has been added to the ScalaJS multiproject demonstration. The entry point (Main.scala) initializes and prints a test message using the myproto.test.Test protocol buffer definition, illustrating how the generated code is consumed in a ScalaJS environment.

examples/scalajs-multiproject/client · high confidence

Added ScalaPB Java Conversions example project

A new example project demonstrating ScalaPB Java conversions has been added to the examples directory. This includes the necessary build configuration files (sbt version 1.12.11, sbt-protoc plugin 1.0.8, and compilerplugin 0.11.20) and a sample protobuf definition (test.proto) defining a simple message structure.

examples/scalapb-java-conversions · high confidence

Added multi-project example demonstrating external protobuf imports

A new example project located at examples/multi-with-external-jar/sub1 has been added to demonstrate how to import and use protobuf definitions from external JARs. The example includes a proto file that imports definitions from com.thesamet.protos and common/common.proto, illustrating the setup for multi-project builds with external dependencies.

examples/multi-with-external-jar/sub1 · high confidence

Initial release of sbt-protoc plugin

Introduces the sbt-protoc plugin, providing settings and tasks to manage Protocol Buffers compilation within sbt. Users can now configure protoc versions, include paths, and generation targets via the PB object, and control caching strategies (LastModified or ContentHash) to optimize build performance.

repository · high confidence

New grpc-java example project with SBT build configuration

A new example project for grpc-java has been added, providing a standalone SBT-based build setup. The project is configured with SBT version 1.12.11 and includes the sbt-protoc plugin (v1.0.8) to handle Protocol Buffers code generation. It contains a basic gRPC service definition (MyService with a DoSomething RPC) in test.proto, along with a .gitignore file to exclude build artifacts.

examples/grpc-java · high confidence

Behavioural changes

Improved sandboxing and Scala 3 compatibility for code generation

The plugin now uses a FilteringClassLoader to isolate code generators from the build environment, preventing access to application dependencies and ensuring sandboxed execution. Additionally, Scala 3 support has been added via new compatibility files, and deprecated system detection methods have been removed in favor of the underlying protocbridge library.

src/main · high confidence

Opt-in content-hash based caching for CI environments

The plugin introduces an opt-in \PB.cacheStyle\ setting (specifically \PB.CacheStyle.ContentHash\) that allows users to track input changes via content hashes instead of file modification times. This is particularly useful in CI environments where file timestamps may not be preserved across jobs. The default behavior remains \PB.CacheStyle.LastModified\ to preserve existing behavior, but upgrading users should be aware of a breaking cache-format change: the on-disk cache state is now split into per-mode subdirectories (\cacheFile/mtime/\ and \cacheFile/hash/\), and artifact stamp order is now deterministic. This change may cause a one-time spurious recompile on the first build after upgrading, regardless of the selected \cacheStyle\.

(repo-wide) · high confidence

Test coverage

Add caching regression test for gRPC timestamp handling; Add scripted test for native plugin settings; Add scripted test for non-JVM protobuf generation; Add test for lazy protoc resolution; Add test for sandboxed generator class visibility; Added compatibility test for ScalaPB 0.11.21 with sbt 2; Added integration test for protobuf compile configuration separation; Added regression test for sbt 2 managed classpath caching; Added scripted test for cross-module protobuf dependency resolution; Added scripted test for sandboxed sbt-protoc compilation; Added scripted tests for ScalaPB 0.9 and 0.10.3 compatibility; Added scripted tests for common-protos integration scenarios; Added scripted tests for protobuf cache invalidation scenarios; Added scripted tests for protobuf file deletion behavior; Added test coverage for ProtobufSrcConfig compilation and packaging; Added test for isolated test-config protobuf generation; Added test for message-valued map round-trip with protoc 3.25; Added test infrastructure for caching validation; Added tests for content-hash based caching; Added tests for content-hash based caching behavior; Test verifies custom proto sources are packaged in the JAR.

Dependencies

Updated ScalaPB example to use sbt-protoc and ScalaPB 0.11.20

The ScalaPB example project has been updated to use the newer sbt-protoc plugin (version 1.0.8) instead of the legacy sbt-scalapb plugin, and the ScalaPB compiler plugin has been upgraded to version 0.11.20. The build properties now specify sbt version 1.12.11. A sample protobuf file (test.proto) is included to demonstrate the setup.

examples/scalapb · 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 59 → 62 (+3.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 56 → 55 (-1.1)
  • Readiness 49 → 58 (+9.6)
  • Security 87 → 80 (-6.7)

Resolved (1)

  • Redundant normalization methods with unclear distinction. normalizedOs and normalizedArch appear to be specific wrappers around a general normalize method, but the API exposes both specific and generic versions without clear documentation on when to use which. This creates confusion for users who might not know if they should call the specific method or the generic one.

New (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • project/build.properties — 1 commit

Notable commits

  • change: Update sbt, scripted-plugin to 1.13.1 (#482)

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

thesamet/sbt-protoc 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 3f7b1b6829700965365993e9d9d785b1bc4c8826 — 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-5f8314471808.