Skip to content

Commit

Permalink
Update scalapb-crossproject example
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Sep 17, 2023
1 parent b716c51 commit f6f985e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/scalapb-crossproject/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import scalapb.compiler.Version.scalapbVersion
val sharedSettings = Seq(
name := "example",
version := "0.1.0",
scalaVersion := "2.11.12",
scalaVersion := "2.13.12",
Compile / PB.protoSources := Seq((ThisBuild / baseDirectory).value / "src" / "main" / "protobuf"),
Compile / PB.targets := Seq(
scalapb.gen() -> (Compile / sourceManaged).value / "protos"
Expand All @@ -20,9 +20,9 @@ lazy val example = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.enablePlugins(BuildInfoPlugin)
.settings(sharedSettings)
.jsSettings(crossScalaVersions := Seq("2.12.16", "2.13.4"))
.jvmSettings(crossScalaVersions := Seq("2.12.16", "2.13.4"))
.nativeSettings(crossScalaVersions := Seq("2.11.12"))
.jsSettings(crossScalaVersions := Seq("2.12.18", "2.13.12"))
.jvmSettings(crossScalaVersions := Seq("2.12.18", "2.13.12"))
.nativeSettings(crossScalaVersions := Seq("2.12.18", "2.13.12"))

lazy val exampleJS = example.js
lazy val exampleJVM = example.jvm
Expand Down
2 changes: 1 addition & 1 deletion examples/scalapb-crossproject/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.12
sbt.version=1.9.6
12 changes: 6 additions & 6 deletions examples/scalapb-crossproject/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "0.6.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.15")

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")

addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.25")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")

libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.8.4"
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.13"

0 comments on commit f6f985e

Please sign in to comment.