Skip to content

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

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
reynaldjoabet:cross-publish-sbt1-and-sbt2
Jun 24, 2026
Merged

build: cross-publish plugin for sbt 1 and sbt 2#90
wing328 merged 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
  • 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, 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

@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

@reynaldjoabet reynaldjoabet force-pushed the cross-publish-sbt1-and-sbt2 branch from 0af8571 to 699e23c Compare June 15, 2026 21:09
@ags313

ags313 commented Jun 24, 2026

Copy link
Copy Markdown

Is there an ETA? Would love to upgrade to sbt 2.0

@wing328

wing328 commented Jun 24, 2026

Copy link
Copy Markdown
Member

@wing328 wing328 merged commit 11ff8df into OpenAPITools:master Jun 24, 2026
1 check passed
@wing328

wing328 commented Jun 24, 2026

Copy link
Copy Markdown
Member

@ags313 i just merged it. can you please pull the latest master to test it when you've time?

@bambuchaAdm

Copy link
Copy Markdown

As @ags313 is busy, i can confirm that version for sbt 2.x works well.
There was one adjustment, it was in scope of sbt 2.x migration (task caching), but could be our build customisation.

Thank you @wing328 for fast merge

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.

4 participants