Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logback-classic, logback-core to 1.2.11 #104

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 18 additions & 41 deletions cloudflow-it/swiss-knife/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,49 @@ import sbt._
import sbt.Keys._

lazy val swissKnife = (project in file("."))
.enablePlugins(ScalafmtPlugin)
.settings(
scalafmtOnCompile := true,
organization := "com.lightbend.cloudflow",
headerLicense := Some(HeaderLicense.ALv2("(C) 2016-2021", "Lightbend Inc. <https://www.lightbend.com>"))
)
.settings(commonSettings)
.aggregate(
app,
datamodel,
flink,
akka,
spark
)
lazy val app = (project in file("./app"))
.enablePlugins(ScalafmtPlugin)
.settings(
name:= "swiss-knife"
)
scalafmtOnCompile := true,
organization := "com.lightbend.cloudflow",
headerLicense := Some(HeaderLicense.ALv2("(C) 2016-2021", "Lightbend Inc. <https://www.lightbend.com>")))
.settings(commonSettings)
.aggregate(app, datamodel, flink, akka, spark)
lazy val app = (project in file("./app"))
.settings(name := "swiss-knife")
.enablePlugins(CloudflowApplicationPlugin)
.settings(commonSettings)
.settings(
name := "swiss-knife",
runLocalConfigFile := Some("app/src/main/resources/local.conf"),
)

.settings(name := "swiss-knife", runLocalConfigFile := Some("app/src/main/resources/local.conf"))

lazy val datamodel = (project in file("datamodel"))
.settings(
commonSettings,
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
libraryDependencies += Cloudflow.library.CloudflowAvro
)
libraryDependencies += Cloudflow.library.CloudflowAvro)

lazy val akka = (project in file("./akka"))
.enablePlugins(CloudflowAkkaPlugin)
.settings(commonSettings)
.settings(
name := "swiss-knife-akka",
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
)
)
.settings(name := "swiss-knife-akka", libraryDependencies ++= Seq("ch.qos.logback" % "logback-classic" % "1.2.11"))
.dependsOn(datamodel)

lazy val spark = (project in file("./spark"))
.enablePlugins(CloudflowNativeSparkPlugin)
.settings(commonSettings)
.settings(
name := "swiss-knife-spark",
)
.settings(commonSettings)
.settings(name := "swiss-knife-spark")
.dependsOn(datamodel)

lazy val flink = (project in file("./flink"))
.enablePlugins(CloudflowNativeFlinkPlugin)
.settings(commonSettings)
.settings(
name := "swiss-knife-flink",
)
.settings(name := "swiss-knife-flink")
.dependsOn(datamodel)

lazy val commonSettings = Seq(
headerLicense := Some(HeaderLicense.ALv2("(C) 2016-2020", "Lightbend Inc. <https://www.lightbend.com>")),
scalaVersion := "2.12.15",
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-Xlog-reflective-calls",
"-Xlint",
Expand All @@ -74,8 +53,6 @@ lazy val commonSettings = Seq(
"-deprecation",
"-feature",
"-language:_",
"-unchecked"
)
)
"-unchecked"))

dynverSeparator in ThisBuild := "-"
84 changes: 30 additions & 54 deletions examples/call-record-aggregator/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,79 +4,58 @@ import sbt.Keys._
lazy val root =
Project(id = "root", base = file("."))
.enablePlugins(ScalafmtPlugin)
.settings(
name := "root",
scalafmtOnCompile := true,
publish / skip := true,
)
.settings(name := "root", scalafmtOnCompile := true, publish / skip := true)
.withId("root")
.settings(commonSettings)
.aggregate(
callRecordPipeline,
datamodel,
akkaCdrIngestor,
akkaJavaAggregationOutput,
sparkAggregation
)
.aggregate(callRecordPipeline, datamodel, akkaCdrIngestor, akkaJavaAggregationOutput, sparkAggregation)

//tag::docs-CloudflowApplicationPlugin-example[]
lazy val callRecordPipeline = appModule("call-record-pipeline")
.enablePlugins(CloudflowApplicationPlugin)
.settings(commonSettings)
.settings(
name := "call-record-aggregator"
)

.settings(name := "call-record-aggregator")

//end::docs-CloudflowApplicationPlugin-example[]

lazy val datamodel = appModule("datamodel")
.settings(
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
libraryDependencies += Cloudflow.library.CloudflowAvro
)
libraryDependencies += Cloudflow.library.CloudflowAvro)

lazy val akkaCdrIngestor= appModule("akka-cdr-ingestor")
.enablePlugins(CloudflowAkkaPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
)
lazy val akkaCdrIngestor = appModule("akka-cdr-ingestor")
.enablePlugins(CloudflowAkkaPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"))
.dependsOn(datamodel)

lazy val akkaJavaAggregationOutput= appModule("akka-java-aggregation-output")
lazy val akkaJavaAggregationOutput = appModule("akka-java-aggregation-output")
.enablePlugins(CloudflowAkkaPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
)
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"))
.dependsOn(datamodel)

lazy val sparkAggregation = appModule("spark-aggregation")
.enablePlugins(CloudflowNativeSparkPlugin)
.settings(
commonSettings,
Test / parallelExecution := false,
Test / fork := true,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
)
.enablePlugins(CloudflowNativeSparkPlugin)
.settings(
commonSettings,
Test / parallelExecution := false,
Test / fork := true,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"))
.dependsOn(datamodel)

def appModule(moduleID: String): Project = {
Project(id = moduleID, base = file(moduleID))
.settings(
name := moduleID
)
.settings(name := moduleID)
.withId(moduleID)
.settings(commonSettings)
}
Expand All @@ -87,7 +66,8 @@ lazy val commonSettings = Seq(
scalaVersion := "2.12.15",
javacOptions += "-Xlint:deprecation",
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-Xlog-reflective-calls",
"-Xlint",
Expand All @@ -96,12 +76,8 @@ lazy val commonSettings = Seq(
"-deprecation",
"-feature",
"-language:_",
"-unchecked"
),

"-unchecked"),
scalacOptions in (Compile, console) --= Seq("-Ywarn-unused", "-Ywarn-unused-import"),
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value

)
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value)

dynverSeparator in ThisBuild := "-"
61 changes: 19 additions & 42 deletions examples/taxi-ride/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,82 +5,60 @@ import cloudflow.sbt.CommonSettingsAndTasksPlugin._
lazy val root =
Project(id = "root", base = file("."))
.enablePlugins(ScalafmtPlugin)
.settings(
name := "root",
publish / skip := true,
scalafmtOnCompile := true,
)
.settings(name := "root", publish / skip := true, scalafmtOnCompile := true)
.withId("root")
.settings(commonSettings)
.aggregate(
taxiRidePipeline,
datamodel,
ingestor,
processor,
ridelogger
)
.aggregate(taxiRidePipeline, datamodel, ingestor, processor, ridelogger)

lazy val taxiRidePipeline = appModule("taxi-ride-pipeline")
.enablePlugins(CloudflowApplicationPlugin)
.settings(commonSettings)
.settings(
name := "taxi-ride-fare",
runLocalConfigFile := Some("taxi-ride-pipeline/src/main/resources/local.conf"),
runLocalLog4jConfigFile := Some("taxi-ride-pipeline/src/main/resources/log4j.properties")
)
runLocalLog4jConfigFile := Some("taxi-ride-pipeline/src/main/resources/log4j.properties"))

lazy val datamodel = appModule("datamodel")
.settings(
commonSettings,
Compile / sourceGenerators += (Compile / avroScalaGenerateSpecific).taskValue,
libraryDependencies += Cloudflow.library.CloudflowAvro
)
libraryDependencies += Cloudflow.library.CloudflowAvro)

lazy val ingestor = appModule("ingestor")
.enablePlugins(CloudflowAkkaPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
)
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.12",
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"))
.dependsOn(datamodel)


lazy val processor = appModule("processor")
.enablePlugins(CloudflowNativeFlinkPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
),
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"),
dependencyOverrides ++= Seq(
"org.apache.kafka" % "kafka-clients" % "3.0.0",
"org.apache.commons" % "commons-compress" % "1.21"
),
parallelExecution in Test := false
)
"org.apache.kafka" % "kafka-clients" % "3.0.0",
"org.apache.commons" % "commons-compress" % "1.21"),
parallelExecution in Test := false)
.dependsOn(datamodel)

lazy val ridelogger = appModule("logger")
.enablePlugins(CloudflowAkkaPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.10",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
)
"ch.qos.logback" % "logback-classic" % "1.2.11",
"org.scalatest" %% "scalatest" % "3.0.8" % "test"))
.dependsOn(datamodel)

def appModule(moduleID: String): Project = {
Project(id = moduleID, base = file(moduleID))
.settings(
name := moduleID
)
.settings(name := moduleID)
.withId(moduleID)
.settings(commonSettings)
}
Expand All @@ -90,7 +68,8 @@ lazy val commonSettings = Seq(
headerLicense := Some(HeaderLicense.ALv2("(C) 2016-2020", "Lightbend Inc. <https://www.lightbend.com>")),
scalaVersion := "2.12.15",
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-Xlog-reflective-calls",
"-Xlint",
Expand All @@ -99,10 +78,8 @@ lazy val commonSettings = Seq(
"-deprecation",
"-feature",
"-language:_",
"-unchecked"
),
"-unchecked"),
scalacOptions in (Compile, console) --= Seq("-Ywarn-unused", "-Ywarn-unused-import"),
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,
)
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value)

dynverSeparator in ThisBuild := "-"