Skip to content

Commit 453815b

Browse files
authored
Merge branch 'master' into grpc-log
2 parents 843f085 + ffbcc70 commit 453815b

3 files changed

Lines changed: 44 additions & 44 deletions

File tree

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ lazy val sbtAirframe =
930930
// This setting might be unnecessary?
931931
//crossSbtVersions := Vector("1.3.13"),
932932
libraryDependencies ++= Seq(
933-
"io.get-coursier" %% "coursier" % "2.0.8",
933+
"io.get-coursier" %% "coursier" % "2.0.9",
934934
"org.apache.commons" % "commons-compress" % "1.20"
935935
),
936936
scriptedLaunchOpts := {

docs/airframe-rpc.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ val buildSettings = Seq(
205205
lazy
206206
val api =
207207
crossProject(JSPlatform, JVMPlatform)
208-
.crossType(CrossType.Pure)
209-
.in(file("myapp-api"))
210-
.setttings(
211-
buildSettings,
212-
"org.wvlet.airframe" %%% "airframe-http" % AIRFRAME_VERSION
213-
)
208+
.crossType(CrossType.Pure)
209+
.in(file("myapp-api"))
210+
.settings(
211+
buildSettings,
212+
libraryDependencies += "org.wvlet.airframe" %%% "airframe-http" % AIRFRAME_VERSION
213+
)
214214

215215
lazy val apiJVM = api.jvm
216216
lazy val apiJS = api.js
@@ -219,51 +219,51 @@ lazy val apiJS = api.js
219219
lazy
220220
val server =
221221
project
222-
.in(file("myapp-server"))
223-
.settings(
224-
buildSettings,
225-
libraryDependencies ++= Seq(
226-
"org.wvlet.airframe" %% "airframe-http-finagle" % AIRFRAME_VERSION
227-
// Add this for using gRPC
228-
"org.wvlet.airframe" %% "airframe-http-grpc" % AIRFRAME_VERSION
229-
)
230-
)
231-
.dependsOn(apiJVM)
222+
.in(file("myapp-server"))
223+
.settings(
224+
buildSettings,
225+
libraryDependencies ++= Seq(
226+
"org.wvlet.airframe" %% "airframe-http-finagle" % AIRFRAME_VERSION,
227+
// Add this for using gRPC
228+
"org.wvlet.airframe" %% "airframe-http-grpc" % AIRFRAME_VERSION
229+
)
230+
)
231+
.dependsOn(apiJVM)
232232

233233
// RPC client project
234234
lazy
235235
val client =
236236
project
237-
.in(file("myapp-client"))
238-
.enablePlugins(AiframeHttpPlugin)
239-
.settings(
240-
buildSettings,
241-
// Generates both ServiceSyncClient and ServiceClient (async)
242-
airframeHttpClients := Seq("myapp.app.v1:sync", "myapp.app.v1:async"),
243-
// Enable debug logging of sbt-airframe
244-
airframeHttpGeneratorOption := "-l debug",
245-
libraryDependencies ++= Seq(
246-
"org.wvlet.airframe" %% "airframe-http-finagle" % AIRFRAME_VERSION
247-
// Add this for using gRPC
248-
"org.wvlet.airframe" %% "airframe-http-grpc" % AIRFRAME_VERSION
249-
)
250-
)
251-
.dependsOn(apiJVM)
237+
.in(file("myapp-client"))
238+
.enablePlugins(AirframeHttpPlugin)
239+
.settings(
240+
buildSettings,
241+
// Generates both ServiceSyncClient and ServiceClient (async)
242+
airframeHttpClients := Seq("myapp.app.v1:sync", "myapp.app.v1:async"),
243+
// Enable debug logging of sbt-airframe
244+
airframeHttpGeneratorOption := "-l debug",
245+
libraryDependencies ++= Seq(
246+
"org.wvlet.airframe" %% "airframe-http-finagle" % AIRFRAME_VERSION
247+
// Add this for using gRPC
248+
"org.wvlet.airframe" %% "airframe-http-grpc" % AIRFRAME_VERSION
249+
)
250+
)
251+
.dependsOn(apiJVM)
252252

253253
// Scala.js UI using RPC
254254
lazy
255255
val ui =
256256
project
257-
.in(file("myapp-ui"))
258-
.enablePlugins(ScalaJSPlugin, AirframeHttpPlugin)
259-
.settings(
260-
buildSettings
261-
// sbt-airframe generates Scala.js HTTP client: ServiceJSClient with this setting:
262-
airframeHttpClients := Seq ("myapp.app.v1:scalajs"),
263-
// Enable debug logging of sbt-airframe
264-
airframeHttpGeneratorOption := "-l debug"
265-
)
266-
.dependsOn(apiJS)
257+
.in(file("myapp-ui"))
258+
.enablePlugins(ScalaJSPlugin, AirframeHttpPlugin)
259+
.settings(
260+
buildSettings,
261+
// sbt-airframe generates Scala.js HTTP client: ServiceJSClient with this setting:
262+
airframeHttpClients := Seq("myapp.app.v1:scalajs"),
263+
// Enable debug logging of sbt-airframe
264+
airframeHttpGeneratorOption := "-l debug"
265+
)
266+
.dependsOn(apiJS)
267267
```
268268

269269
### sbt-airframe plugin
@@ -289,7 +289,7 @@ is `<RPC package name>:<client type>(:<target package name>)?`. For example:
289289
__build.sbt__
290290

291291
```scala
292-
enablePlugins(AiframeHttpPlugin)
292+
enablePlugins(AirframeHttpPlugin)
293293

294294
airframeHttpClients := Seq("hello.api.v1:sync")
295295
```

project/plugin.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ libraryDependencies ++= (
2121
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
2222

2323
// Documentation
24-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.14")
24+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.16")
2525

2626
// For generating Lexer/Parser from ANTLR4 grammar (.g4)
2727
addSbtPlugin("com.simplytyped" % "sbt-antlr4" % "0.8.3")

0 commit comments

Comments
 (0)