2017-03-10 04:32:14 +08:00
|
|
|
name := "bbb-common-web"
|
|
|
|
|
|
|
|
organization := "org.bigbluebutton"
|
|
|
|
|
|
|
|
version := "0.0.1-SNAPSHOT"
|
|
|
|
|
2017-05-11 05:24:36 +08:00
|
|
|
scalaVersion := "2.12.2"
|
2017-03-11 06:01:56 +08:00
|
|
|
|
|
|
|
scalacOptions ++= Seq(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
|
|
|
"-target:jvm-1.8",
|
|
|
|
"-encoding", "UTF-8"
|
|
|
|
)
|
|
|
|
|
2017-03-10 04:32:14 +08:00
|
|
|
// We want to have our jar files in lib_managed dir.
|
|
|
|
// This way we'll have the right path when we import
|
|
|
|
// into eclipse.
|
|
|
|
retrieveManaged := true
|
|
|
|
|
|
|
|
testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "html", "console", "junitxml")
|
|
|
|
|
|
|
|
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/scalatest-reports")
|
|
|
|
|
2017-05-11 05:24:36 +08:00
|
|
|
val scalaV = "2.12.2"
|
2017-05-18 01:50:58 +08:00
|
|
|
val akkaVersion = "2.5.1"
|
2017-03-11 06:01:56 +08:00
|
|
|
|
2017-05-18 01:50:58 +08:00
|
|
|
// https://mvnrepository.com/artifact/org.scala-lang/scala-library
|
|
|
|
libraryDependencies += "org.scala-lang" % "scala-library" % scalaV
|
|
|
|
// https://mvnrepository.com/artifact/org.scala-lang/scala-compiler
|
|
|
|
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaV
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-actor_2.12
|
|
|
|
libraryDependencies += "com.typesafe.akka" % "akka-actor_2.12" % akkaVersion
|
|
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-slf4j_2.12
|
|
|
|
libraryDependencies += "com.typesafe.akka" % "akka-slf4j_2.12" % akkaVersion
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/com.github.etaty/rediscala_2.12
|
|
|
|
libraryDependencies += "com.github.etaty" % "rediscala_2.12" % "1.8.0"
|
|
|
|
|
|
|
|
libraryDependencies += "com.softwaremill.quicklens" %% "quicklens" % "1.4.8"
|
2017-03-11 06:01:56 +08:00
|
|
|
|
2017-05-11 05:24:36 +08:00
|
|
|
libraryDependencies += "org.bigbluebutton" % "bbb-common-message_2.12" % "0.0.19-SNAPSHOT"
|
2017-05-26 05:34:46 +08:00
|
|
|
// https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.12
|
|
|
|
libraryDependencies += "com.fasterxml.jackson.module" % "jackson-module-scala_2.12" % "2.8.8"
|
2017-05-11 05:24:36 +08:00
|
|
|
|
2017-05-11 04:22:50 +08:00
|
|
|
libraryDependencies += "redis.clients" % "jedis" % "2.7.2"
|
|
|
|
libraryDependencies += "com.google.code.gson" % "gson" % "2.5"
|
|
|
|
|
2017-03-17 04:34:44 +08:00
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
|
|
|
|
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.5"
|
2017-05-11 04:22:50 +08:00
|
|
|
libraryDependencies += "commons-io" % "commons-io" % "2.4"
|
2017-03-17 04:34:44 +08:00
|
|
|
|
2017-05-11 04:22:50 +08:00
|
|
|
libraryDependencies += "org.apache.commons" % "commons-pool2" % "2.3"
|
2017-03-15 22:29:10 +08:00
|
|
|
libraryDependencies += "commons-io" % "commons-io" % "2.4"
|
2017-05-11 04:22:50 +08:00
|
|
|
libraryDependencies += "com.zaxxer" % "nuprocess" % "1.1.0"
|
|
|
|
libraryDependencies += "com.artofsolving" % "jodconverter" % "2.2.1"
|
|
|
|
libraryDependencies += "org.openoffice" % "unoil" % "3.2.1"
|
|
|
|
libraryDependencies += "org.openoffice" % "ridl" % "3.2.1"
|
|
|
|
libraryDependencies += "org.openoffice" % "juh" % "3.2.1"
|
|
|
|
libraryDependencies += "org.openoffice" % "jurt" % "3.2.1"
|
|
|
|
|
|
|
|
libraryDependencies += "org.apache.poi" % "poi-ooxml" % "3.15"
|
2017-05-11 05:24:36 +08:00
|
|
|
|
2017-05-11 04:22:50 +08:00
|
|
|
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.5"
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
|
|
|
|
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.3"
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpasyncclient
|
|
|
|
libraryDependencies += "org.apache.httpcomponents" % "httpasyncclient" % "4.1.3"
|
|
|
|
|
2017-03-10 04:32:14 +08:00
|
|
|
libraryDependencies += "org.freemarker" % "freemarker" % "2.3.23"
|
2017-03-11 06:01:56 +08:00
|
|
|
libraryDependencies += "com.fasterxml.jackson.dataformat" % "jackson-dataformat-xml" % "2.6.3"
|
2017-03-12 01:35:06 +08:00
|
|
|
// https://mvnrepository.com/artifact/org.codehaus.woodstox/woodstox-core-asl
|
|
|
|
libraryDependencies += "org.codehaus.woodstox" % "woodstox-core-asl" % "4.4.1"
|
2017-03-10 04:32:14 +08:00
|
|
|
|
|
|
|
libraryDependencies += "org.pegdown" % "pegdown" % "1.4.0" % "test"
|
|
|
|
libraryDependencies += "junit" % "junit" % "4.12" % "test"
|
|
|
|
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
|
|
|
|
// https://mvnrepository.com/artifact/org.mockito/mockito-core
|
|
|
|
libraryDependencies += "org.mockito" % "mockito-core" % "2.7.12" % "test"
|
|
|
|
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.1" % "test"
|
|
|
|
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
|
|
|
|
|
2017-05-18 01:50:58 +08:00
|
|
|
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-testkit_2.12
|
|
|
|
libraryDependencies += "com.typesafe.akka" % "akka-testkit_2.12" % akkaVersion % "test"
|
|
|
|
|
|
|
|
|
2017-03-10 04:32:14 +08:00
|
|
|
seq(Revolver.settings: _*)
|
|
|
|
|
|
|
|
//-----------
|
|
|
|
// Packaging
|
|
|
|
//
|
|
|
|
// Reference:
|
|
|
|
// http://xerial.org/blog/2014/03/24/sbt/
|
|
|
|
// http://www.scala-sbt.org/sbt-pgp/usage.html
|
|
|
|
// http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html
|
|
|
|
// http://central.sonatype.org/pages/requirements.html
|
|
|
|
// http://central.sonatype.org/pages/releasing-the-deployment.html
|
|
|
|
//-----------
|
|
|
|
|
|
|
|
// Build pure Java lib (i.e. without scala)
|
|
|
|
// Do not append Scala versions to the generated artifacts
|
|
|
|
crossPaths := false
|
|
|
|
|
|
|
|
// This forbids including Scala related libraries into the dependency
|
|
|
|
autoScalaLibrary := false
|
|
|
|
|
|
|
|
/***************************
|
|
|
|
* When developing, change the version above to x.x.x-SNAPSHOT then use the file resolver to
|
|
|
|
* publish to the local maven repo using "sbt publish"
|
|
|
|
*/
|
|
|
|
// Uncomment this to publish to local maven repo while commenting out the nexus repo
|
|
|
|
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
|
|
|
|
|
|
|
|
|
|
|
|
// Comment this out when publishing to local maven repo using SNAPSHOT version.
|
|
|
|
// To push to sonatype "sbt publishSigned"
|
|
|
|
//publishTo := {
|
|
|
|
// val nexus = "https://oss.sonatype.org/"
|
|
|
|
// if (isSnapshot.value)
|
|
|
|
// Some("snapshots" at nexus + "content/repositories/snapshots")
|
|
|
|
// else
|
|
|
|
// Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
|
|
|
//}
|
|
|
|
|
|
|
|
// Enables publishing to maven repo
|
|
|
|
publishMavenStyle := true
|
|
|
|
|
|
|
|
publishArtifact in Test := false
|
|
|
|
|
|
|
|
pomIncludeRepository := { _ => false }
|
|
|
|
|
|
|
|
pomExtra := (
|
|
|
|
<scm>
|
|
|
|
<url>git@github.com:bigbluebutton/bigbluebutton.git</url>
|
|
|
|
<connection>scm:git:git@github.com:bigbluebutton/bigbluebutton.git</connection>
|
|
|
|
</scm>
|
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<id>ritzalam</id>
|
|
|
|
<name>Richard Alam</name>
|
|
|
|
<url>http://www.bigbluebutton.org</url>
|
|
|
|
</developer>
|
|
|
|
</developers>)
|
|
|
|
|
|
|
|
licenses := Seq("LGPL-3.0" -> url("http://opensource.org/licenses/LGPL-3.0"))
|
|
|
|
|
|
|
|
homepage := Some(url("http://www.bigbluebutton.org"))
|
|
|
|
|
|
|
|
|