Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
More fixes for schema plugin removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
RayRoestenburg committed Jan 19, 2022
1 parent f0d9949 commit e0a4d0b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 8 deletions.
5 changes: 4 additions & 1 deletion examples/connected-car-cluster-sharding/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ lazy val connectedCarExample = (project in file("./akka-connected-car"))
)

lazy val datamodel = (project in file("./datamodel"))
.enablePlugins(CloudflowLibraryPlugin)
.settings(
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
libraryDependencies += "org.apache.avro" % "avro" % "1.11.0"
)

lazy val akkaConnectedCar= (project in file("./akka-connected-car-streamlet"))
.enablePlugins(CloudflowAkkaPlugin)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.0.0-RC25")
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lazy val sensorData = (project in file("."))
"com.lightbend.akka" %% "akka-stream-alpakka-file" % "1.1.2",
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.apache.avro" % "avro" % "1.11.0",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.12" % "test",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
Expand All @@ -39,6 +40,7 @@ lazy val sensorData = (project in file("."))
),

Compile / console / scalacOptions --= Seq("-Ywarn-unused"),
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
Test / console / scalacOptions := (Compile / console / scalacOptions).value
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.0.0-RC25")
1 change: 1 addition & 0 deletions examples/templates/single-backend-java/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ lazy val templateJavaProject = (project in file("."))
),
runLocalConfigFile := Some("src/main/resources/local.conf"),
Compile / console / scalacOptions --= Seq("-Ywarn-unused", "-Ywarn-unused-import"),
avroStringType := "String",
Test / console / scalacOptions := (Compile / console / scalacOptions).value
)

Expand Down
2 changes: 2 additions & 0 deletions examples/templates/single-backend-java/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.github.sbt" % "sbt-avro" % "3.4.0")
libraryDependencies += "org.apache.avro" % "avro-compiler" % "1.11.0"
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public RunnableGraphStreamletLogic createLogic() {
return new RunnableGraphStreamletLogic(getContext()) {

public String format(Data data) {
return data.id() + "-> " +data.value();
return data.getId() + "-> " +data.getValue();
}
public RunnableGraph<NotUsed> createRunnableGraph() {
return getPlainSource(inlet)
Expand Down
6 changes: 4 additions & 2 deletions examples/templates/single-backend-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ lazy val templateScala = (project in file("."))
.settings(
scalafmtOnCompile := true,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
"org.apache.avro"% "avro" % "1.11.0",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
),
name := "template-scala",
organization := "com.lightbend.cloudflow",
Expand All @@ -29,6 +30,7 @@ lazy val templateScala = (project in file("."))
),
runLocalConfigFile := Some("src/main/resources/local.conf"),
Compile / console / scalacOptions --= Seq("-Ywarn-unused", "-Ywarn-unused-import"),
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
Test / console / scalacOptions := (Compile / console / scalacOptions).value
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.0.0-RC25")
9 changes: 5 additions & 4 deletions examples/tensorflow-akka/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ lazy val tensorflowAkka = (project in file("."))
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.12" % "test",
"org.tensorflow" % "tensorflow" % "1.15.0",
"org.tensorflow" % "proto" % "1.15.0",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
"org.tensorflow" % "tensorflow" % "1.15.0",
"org.tensorflow" % "proto" % "1.15.0",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"org.apache.avro" % "avro" % "1.11.0"
//tag::docs-projectName-example[]
),
name := "tensorflow-akka",
Expand All @@ -34,7 +35,7 @@ lazy val tensorflowAkka = (project in file("."))
"-language:_",
"-unchecked"
),

Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
runLocalConfigFile := Some("src/main/resources/local.conf"),
Compile / console / scalacOptions --= Seq("-Ywarn-unused", "-Ywarn-unused-import"),
Test / console / scalacOptions := (Compile / console / scalacOptions).value,
Expand Down
1 change: 1 addition & 0 deletions examples/tensorflow-akka/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.0.0-RC25")

0 comments on commit e0a4d0b

Please sign in to comment.