Skip to content

Commit fe85d55

Browse files
xerialclaude
andauthored
internal: Update examples to airframe 2026.2.2 on sbt 2 (#4189)
## Summary Finishes the sbt 2.0.1 migration for the example projects (not covered by CI) now that `airframe 2026.2.2` is on Maven Central. - Bump the examples' airframe **library** dependency `2026.1.1` → `2026.2.2`, matching their `sbt-airframe 2026.2.2` plugin. - Move the Scala 3 examples (`rpc-scalajs`, `hello-rpc`) to **Scala 3.3.7**: the `2026.2.2` `_3` artifacts are built with 3.3.7, whose TASTy a 3.2.2 consumer can't read. - Move `gallery` to Scala 3.3.7 as well (its source already uses Scala 3 `import ...all.*`), drop the Scala-2-only `-Yrangepos`, and parenthesize one single-arg lambda for Scala 3. ## Verified All three examples compile against the published `2026.2.2` artifacts. `hello-rpc` and `rpc-scalajs` also exercise the `AirframeHttpPlugin` RPC client codegen end-to-end (generated `GreeterRPC.scala` / `ServiceRPC.scala`, downloading `airframe-http-codegen 2026.2.2`). ## Docs No changes needed: `docs/mdoc` compiles cleanly under sbt 2.0.1 (30 files, 0 errors — the one warning is a pre-existing broken link). The `docusaurusPublishGhpages` step is node-side tooling, unaffected by the sbt migration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 82e4ff2 commit fe85d55

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

examples/rpc-examples/hello-rpc/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
val AIRFRAME_VERSION = "2026.1.1"
2-
ThisBuild / scalaVersion := "3.2.2"
1+
val AIRFRAME_VERSION = "2026.2.2"
2+
ThisBuild / scalaVersion := "3.3.7"
33

44
// RPC API definition. This project should contain only RPC interfaces
55
lazy val api =

examples/rpc-examples/rpc-scalajs/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Global / onChangedBuildSource := ReloadOnSourceChanges
22

3-
val AIRFRAME_VERSION = "2026.1.1"
4-
ThisBuild / scalaVersion := "3.2.2"
3+
val AIRFRAME_VERSION = "2026.2.2"
4+
ThisBuild / scalaVersion := "3.3.7"
55

66
lazy val rpcExample =
77
project

examples/rx-demo/gallery/build.sbt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
Global / onChangedBuildSource := ReloadOnSourceChanges
22

3-
val AIRFRAME_VERSION = "2026.1.1"
4-
ThisBuild / scalaVersion := "2.13.18"
3+
val AIRFRAME_VERSION = "2026.2.2"
4+
ThisBuild / scalaVersion := "3.3.7"
55

66
lazy val gallery =
77
project
88
.enablePlugins(ScalaJSPlugin)
99
.in(file("."))
1010
.settings(
1111
scalaJSUseMainModuleInitializer := false,
12-
scalacOptions ++= Seq(
13-
// Necessary for tracking source code range in airframe-rx demo
14-
"-Yrangepos"
15-
),
1612
libraryDependencies ++= Seq(
1713
"org.wvlet.airframe" %% "airframe-rx-html" % AIRFRAME_VERSION
1814
)

examples/rx-demo/gallery/src/main/scala/Gallery.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ object Gallery extends LogSupport {
165165
div(
166166
button(
167167
cls -> "btn btn-primary",
168-
onclick { e: dom.Event =>
168+
onclick { (e: dom.Event) =>
169169
v.update(_ + 1)
170170
},
171171
"Increment"

0 commit comments

Comments
 (0)