@@ -205,12 +205,12 @@ val buildSettings = Seq(
205205lazy
206206val 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
215215lazy val apiJVM = api.jvm
216216lazy val apiJS = api.js
@@ -219,51 +219,51 @@ lazy val apiJS = api.js
219219lazy
220220val 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
234234lazy
235235val 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
254254lazy
255255val 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
294294airframeHttpClients := Seq (" hello.api.v1:sync" )
295295```
0 commit comments