Skip to content

build: cross-publish plugin for sbt 1 and sbt 2#90

Open
reynaldjoabet wants to merge 1 commit into
OpenAPITools:masterfrom
reynaldjoabet:cross-publish-sbt1-and-sbt2
Open

build: cross-publish plugin for sbt 1 and sbt 2#90
reynaldjoabet wants to merge 1 commit into
OpenAPITools:masterfrom
reynaldjoabet:cross-publish-sbt1-and-sbt2

Conversation

@reynaldjoabet

@reynaldjoabet reynaldjoabet commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Enable cross-building so the plugin publishes against both
sbt 1.x (Scala 2.12) and sbt 2.x (Scala 3), and align the CI/
release workflows with sbt 2's JDK 17 requirement.

build.sbt:

  • crossScalaVersions := Seq(2.12.20, 3.8.4)
  • set bytecode floors via -release (2.12 -> 11, Scala 3 -> 17)
  • sbt 2.x target 2.0.0-RC12 -> 2.0.0-RC15
  • sbt 1.x target / build sbt 1.12.10 -> 1.12.11
  • bump Scala 3 3.7.2 -> 3.8.4

CI:

  • release & build workflows: Java 8/11 -> 17 (sbt 2 needs 17+)
  • update checkout@v6 / setup-java@v5
  • build step runs +test +scripted across both Scala axes

Summary by cubic

Cross-publish the sbt-openapi-generator plugin for sbt 1.x (Scala 2.12) and sbt 2.x (Scala 3). Align CI and bytecode targets with sbt 2’s JDK 17 requirements.

  • Build & CI
    • Enable cross build: crossScalaVersions := Seq(2.12.20, 3.8.4)
    • Set bytecode targets via -release: 11 (Scala 2.12), 17 (Scala 3)
    • Version bumps: sbt 2 target → 2.0.0-RC15, Scala 3 → 3.8.4, sbt 1 build → 1.12.11
    • CI: Java 17, actions/checkout@v6, actions/setup-java@v5, run sbt +test +scripted across both Scala axes

Written for commit 0af8571. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

Enable cross-building so the plugin publishes against both
sbt 1.x (Scala 2.12) and sbt 2.x (Scala 3), and align the CI/
release workflows with sbt 2's JDK 17 requirement.

build.sbt:
- crossScalaVersions := Seq(2.12.20, 3.8.4)
- set bytecode floors via -release (2.12 -> 11, Scala 3 -> 17)
- sbt 2.x target 2.0.0-RC12 -> 2.0.0-RC15
- sbt 1.x target / build sbt 1.12.10 -> 1.12.11
- bump Scala 3 3.7.2 -> 3.8.4

CI:
- release & build workflows: Java 8/11 -> 17 (sbt 2 needs 17+)
- update checkout@v6 / setup-java@v5
- build step runs +test +scripted across both Scala axes
@reynaldjoabet reynaldjoabet force-pushed the cross-publish-sbt1-and-sbt2 branch from 9b89573 to 0af8571 Compare June 8, 2026 21:28
@wing328

wing328 commented Jun 9, 2026

Copy link
Copy Markdown
Member

thanks for the PR

we will include it in the next stable release

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.

2 participants