Skip to content

Commit

Permalink
version 0.4.0-1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mliarakos committed Sep 28, 2020
1 parent 25f258c commit 496c985
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Lagom.js is built against specific versions of Lagom, the latest are:
|-------------|-------|-----------------|----------|
| 0.1.2-1.5.5 | 1.5.5 | 2.11 <br> 2.12 | 0.6.31 |
| 0.3.2-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 0.6.33 |
| 0.4.0-1.6.3 | 1.6.3 | 2.12 <br> 2.13 | 1.1.1 |
| 0.4.0-1.6.4 | 1.6.4 | 2.12 <br> 2.13 | 1.2.0 |

Lagom.js moved to Scala.js 1.x starting with version `0.4.0-1.6.2`. Scala.js 0.6 is no longer supported, the last version to support it was `0.3.2-1.6.2 `. For all past releases, see [releases](#Releases).
Lagom.js moved to Scala.js 1.x starting with version `0.4.0-1.6.2`. Scala.js 0.6 is no longer supported, the last version to support it was `0.3.2-1.6.2`. For all past releases, see [releases](#Releases).

Lagom.js does not support the Lagom Java API. It only supports the Lagom Scala API because Scala.js only supports Scala.

Expand All @@ -27,7 +27,7 @@ Lagom.js provides JavaScript versions of several Lagom artifacts. The two most i
The `lagomjs-scaladsl-api` artifact provides the JavaScript implementation of the Lagom service API:

```sbt
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.3"
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.4"
```

To use it you'll need to configure your service API as a [Scala.js cross project](https://github.com/portable-scala/sbt-crossproject) for the JVM and JS platforms. Then, add the `lagomjs-scaladsl-api` dependency to the JS platform:
Expand All @@ -39,7 +39,7 @@ lazy val `service-api` = crossProject(JVMPlatform, JSPlatform)
libraryDependencies += lagomScaladslApi
)
.jsSettings(
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.3"
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.4"
)
```

Expand All @@ -50,15 +50,15 @@ This enables your Lagom service definition to be compiled into JavaScript. In ad
The `lagomjs-scaladsl-client` artifact provides the JavaScript implementation of the Lagom service client:

```sbt
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.3"
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.4"
```

You can use it in a Scala.js project along with your service API to generate a service client:

```scala
lazy val `client-js` = project
.settings(
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.3"
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.4"
)
.enablePlugins(ScalaJSPlugin)
.dependsOn(`service-api`.js)
Expand Down Expand Up @@ -95,4 +95,5 @@ Lagom.js tracks Lagom and generally doesn't continue development on previous Lag
| 0.3.2-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 0.6.33 |
| 0.4.0-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 1.0.1 |
| 0.4.0-1.6.3 | 1.6.3 | 2.12 <br> 2.13 | 1.1.1 |
| 0.4.0-1.6.4 | 1.6.4 | 2.12 <br> 2.13 | 1.2.0 |

12 changes: 6 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject

val scalaVersions = Seq("2.12.10", "2.13.1")

val baseLagomVersion = "1.6.3"
val baseLagomVersion = "1.6.4"
val akkaJsVersion = "2.2.6.5"

lazy val scalaSettings = Seq(
Expand Down Expand Up @@ -50,7 +50,7 @@ lazy val publishSettings = Seq(

lazy val commonSettings = scalaSettings ++ publishSettings ++ Seq(
organization := "com.github.mliarakos.lagomjs",
version := s"0.4.1-$baseLagomVersion-SNAPSHOT"
version := s"0.4.0-$baseLagomVersion"
)

lazy val commonJsSettings = Seq(
Expand Down Expand Up @@ -182,7 +182,7 @@ lazy val `lagomjs-api-scaladsl` = crossProject(JSPlatform)
.jsSettings(
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided",
"org.scalatest" %%% "scalatest" % "3.1.3" % Test
"org.scalatest" %%% "scalatest" % "3.1.4" % Test
)
)
.jsSettings(
Expand Down Expand Up @@ -246,8 +246,8 @@ lazy val `lagomjs-client` = crossProject(JSPlatform)
.jsSettings(commonJsSettings: _*)
.jsSettings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "1.0.0",
"org.scalatest" %%% "scalatest" % "3.1.3" % Test
"org.scala-js" %%% "scalajs-dom" % "1.1.0",
"org.scalatest" %%% "scalatest" % "3.1.4" % Test
)
)
.jsSettings(
Expand Down Expand Up @@ -293,7 +293,7 @@ lazy val `lagomjs-client-scaladsl` = crossProject(JSPlatform)
.jsSettings(commonJsSettings: _*)
.jsSettings(
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.1.3" % Test
"org.scalatest" %%% "scalatest" % "3.1.4" % Test
)
)
.jsSettings(
Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.2.0")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
addSbtPlugin("org.akka-js" % "sbt-shocon" % "1.0.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4")

libraryDependencies ++= Seq(
"org.eclipse.jgit" % "org.eclipse.jgit.pgm" % "3.7.1.201504261725-r",
Expand Down

0 comments on commit 496c985

Please sign in to comment.