Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
**/target/**
**/.idea/**
**/*.iml
**/.bsp
90 changes: 90 additions & 0 deletions search-api/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import sbt._
import play.sbt.PlaySettings
import scoverage.ScoverageSbtPlugin._

name := "search-api"
ThisBuild / organization := "org.sunbird"
ThisBuild / scalaVersion := "2.12.8"

lazy val scalaMajorVersion = "2.12"

lazy val root = (project in file("."))
.aggregate(searchService, searchActors, searchCore)
.dependsOn(searchService, searchActors, searchCore)
.settings(
commonSettings
)

lazy val searchService = (project in file("search-service"))
.enablePlugins(PlayScala, PlayNettyServer)
.disablePlugins(PlayAkkaHttpServer)
.settings(
name := "search-service",
version := "1.0-SNAPSHOT",
commonSettings,
libraryDependencies ++= Seq(
guice,
"org.joda" % "joda-convert" % "2.1.2",
"com.github.danielwegener" % "logback-kafka-appender" % "0.2.0-RC2",
"net.logstash.logback" % "logstash-logback-encoder" % "5.2",
"io.lemonlabs" %% "scala-uri" % "1.4.10",
"net.codingwell" %% "scala-guice" % "4.2.5",
"com.typesafe.play" %% "play-specs2" % "2.7.9",
"io.netty" % "netty-transport-native-epoll" % "4.1.60.Final",
"org.scalatestplus.play" %% "scalatestplus-play" % "4.0.3" % Test,
"org.scalatest" % ("scalatest_" + scalaMajorVersion) % "3.1.2" % Test
)
)
.settings(
libraryDependencies += ("org.sunbird" % ("search-actors") % "1.0-SNAPSHOT")
.exclude("com.typesafe.akka","akka-actor_2.11")
.exclude("org.scala-lang.modules","scala-java8-compat_2.11")
.exclude("org.scala-lang.modules","scala-parser-combinators_2.11")
.exclude("com.typesafe.akka","akka-slf4j_2.11")
).dependsOn(searchActors)

lazy val searchActors = (project in file("search-actors"))
.settings(
name := "search-actors",
version := "1.0-SNAPSHOT",
commonSettings,
libraryDependencies ++= Seq(
"javax.inject" % "javax.inject" % "1",
"org.sunbird" % "actor-core" % "1.0-SNAPSHOT",
"org.sunbird" % ("search-core") % "1.0-SNAPSHOT",
"org.scalatest" % ("scalatest_" + scalaMajorVersion) % "3.0.8",
"org.scalamock" % ("scalamock_" + scalaMajorVersion) % "4.4.0" % Test,
"com.typesafe.akka" % ("akka-testkit_" + scalaMajorVersion) % "2.5.22" % Test,
"org.javassist" % "javassist" % "3.24.0-GA" % Test,
"junit" % "junit" % "4.13.1" % Test,
"org.powermock" % "powermock-api-mockito2" % "2.0.9" % Test,
"org.powermock" % "powermock-module-junit4" % "2.0.9" % Test
)
).dependsOn(searchCore)

lazy val searchCore = (project in file("search-core"))
.settings(
name := "search-core",
version := "1.0-SNAPSHOT",
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" % ("akka-actor_" + scalaMajorVersion) % "2.5.22",
"org.sunbird" % "platform-common" % "1.0-SNAPSHOT",
"commons-lang" % "commons-lang" % "2.6",
"org.apache.httpcomponents" % "httpclient" % "4.5.2",
"javax.xml" % "jaxb-api" % "2.1",
"org.sunbird" % "platform-telemetry" % "1.0-SNAPSHOT",
"org.sunbird" % "schema-validator" % "1.0-SNAPSHOT",
"org.apache.httpcomponents" % "httpmime" % "4.5.2",
"net.sf.json-lib" % "json-lib" % "2.4" classifier "jdk15",
"org.elasticsearch.client" % "elasticsearch-rest-high-level-client" % "6.8.22",
"junit" % "junit" % "4.13.1" % Test
)
)

lazy val commonSettings = Seq(
javacOptions ++= Seq("-source", "11", "-target", "11"),
crossPaths := false,
coverageEnabled := true,
resolvers ++= Seq("Local Maven Repository" at "file:///"+Path.userHome+"/.m2/repository")
)
24 changes: 0 additions & 24 deletions search-api/pom.xml

This file was deleted.

1 change: 1 addition & 0 deletions search-api/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.6.2
14 changes: 14 additions & 0 deletions search-api/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.9")

// sbt-paradox, used for documentation
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.4.4")

// Load testing tool:
// http://gatling.io/docs/2.2.2/extensions/sbt_plugin.html
addSbtPlugin("io.gatling" % "gatling-sbt" % "3.0.0")

// Scala formatting: "sbt scalafmt"
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.15")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.1")
98 changes: 0 additions & 98 deletions search-api/search-actors/pom.xml

This file was deleted.

104 changes: 0 additions & 104 deletions search-api/search-core/pom.xml

This file was deleted.

Loading