Skip to content

Commit

Permalink
The project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxpluto committed May 5, 2021
1 parent e5ce2fd commit 47d97e4
Show file tree
Hide file tree
Showing 49 changed files with 2,530 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/

target/

gdpr-test.jceks
gdpr-test.pcks12
56 changes: 56 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
organization in ThisBuild := "org.taymyr"
version in ThisBuild := "0.0.1-SNAPSHOT"

// the Scala version that will be used for cross-compiled libraries
scalaVersion in ThisBuild := "2.12.4"

val akkaVersion = "2.6.3"
val playVersion = "2.8.1"
val akka = "com.typesafe.akka" %% "akka-actor" % akkaVersion
val protobuf = "com.google.protobuf" % "protobuf-java" % "3.11.1"
val jacksonDataBind = "com.fasterxml.jackson.core" % "jackson-databind" % "2.10.3"
val playJson = "com.typesafe.play" %% "play-json" % playVersion

val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.0" % Test
val scalaTestWordSpec = "org.scalatest" %% "scalatest-wordspec" % "3.2.0" % Test
val jacksonParameterNames = "com.fasterxml.jackson.module" % "jackson-module-parameter-names" % "2.10.3" % Test

lazy val `core` = (project in file ("core"))
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
akka,
protobuf,
akkaTestKit,
scalaTest,
scalaTestWordSpec
)
)

lazy val `jackson` = (project in file("jackson"))
.settings(commonSettings)
.settings(libraryDependencies ++= Seq(
jacksonDataBind,
akkaTestKit,
scalaTest,
scalaTestWordSpec,
jacksonParameterNames
))
.settings(javacOptions +="-parameters")
.dependsOn(`core`)

lazy val `play-json` = (project in file("play-json"))
.settings(commonSettings)
.settings(libraryDependencies ++= Seq(
playJson,
akkaTestKit,
scalaTest,
scalaTestWordSpec
))
.dependsOn(`core`)

lazy val `akka-gdpr` = (project in file("."))
.aggregate(`core`, `jackson`, `play-json`)

lazy val commonSettings = Seq()
Loading

0 comments on commit 47d97e4

Please sign in to comment.