Skip to content

Cross-build sbt-fs2-grpc for sbt 1 and 2 - #893

Merged
ahjohannessen merged 1 commit into
typelevel:mainfrom
ahjohannessen:codex/cross-build-sbt-2
Nov 28, 2026
Merged

ahjohannessen merged 1 commit into
typelevel:mainfrom
ahjohannessen:codex/cross-build-sbt-2

Conversation

@ahjohannessen

@ahjohannessen ahjohannessen commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Cross-build sbt-fs2-grpc for sbt 1 and sbt 2 from the existing sbt 1.13.1 build. Consumers use the same addSbtPlugin declaration on either sbt line.

Tested consumer Published plugin sbt-protoc Scripted tests
sbt 1.13.1 sbt-fs2-grpc_2.12_1.0 1.0.8 5/5 passed
sbt 2.1.0 sbt-fs2-grpc_sbt2_3 1.1.0-RC3 5/5 passed

The sbt 2 plugin is built with Scala 3.9.0 and requires sbt 2.1.0+ and JDK 17+. It excludes ScalaPB’s older transitive protoc-bridge dependency and uses the version supplied by sbt-protoc RC3. The exclusion is published for consumers, avoiding the dependency conflict without relaxing eviction checks.

CI retains JDK 8 coverage for the sbt 1 plugin and libraries. JDK 17 exercises both plugin variants and handles publishing. The aggregate root opts out of cross-publishing so each variant is published once by +publish.

Both variants run the same five scripted fixtures against locally published artifacts. Each fixture compiles generated sources and checks expected output; the context fixture also checks the generated Scala 3 using parameter.

CI passed: tests on JDK 8 and 17, workflow checks, formatting, headers, binary compatibility, and API documentation.

Related to #856.

@ahjohannessen
ahjohannessen force-pushed the codex/cross-build-sbt-2 branch from 2fc61f0 to f81fefb Compare November 28, 2026 07:34
Publish separate sbt 1 and sbt 2 plugin variants using the existing sbt 1
build. Build the sbt 2 variant with sbt 2.1.0, Scala 3.9.0, and sbt-protoc
1.1.0-RC3, and publish the exclusion of ScalaPB's older protoc-bridge.
Retain JDK 8 coverage for sbt 1 and the libraries, publish from JDK 17,
and prepare the 3.2 release line.

Validation: the implementation passed GitHub Actions on JDK 8 and 17,
including all five scripted fixtures for both plugin variants, formatting,
headers, workflow checks, binary compatibility, and API documentation.
The subsequent base-version bump passed git diff --check.

Co-authored-by: Codex <codex@openai.com>
@ahjohannessen
ahjohannessen force-pushed the codex/cross-build-sbt-2 branch from f81fefb to 354607a Compare November 28, 2026 07:36
@ahjohannessen
ahjohannessen merged commit f99c933 into typelevel:main Nov 28, 2026
5 checks passed
@ahjohannessen
ahjohannessen deleted the codex/cross-build-sbt-2 branch November 28, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant