2018-11-06 21:43:03 +08:00
|
|
|
import org.bigbluebutton.build._
|
|
|
|
|
|
|
|
version := "0.0.3-SNAPSHOT"
|
|
|
|
|
|
|
|
val compileSettings = Seq(
|
|
|
|
organization := "org.bigbluebutton",
|
|
|
|
|
|
|
|
scalacOptions ++= List(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
2023-06-13 05:15:33 +08:00
|
|
|
"-release:17",
|
2018-11-06 21:43:03 +08:00
|
|
|
"-encoding", "UTF-8"
|
|
|
|
),
|
|
|
|
javacOptions ++= List(
|
|
|
|
"-Xlint:unchecked",
|
|
|
|
"-Xlint:deprecation"
|
|
|
|
)
|
2017-03-11 06:01:56 +08:00
|
|
|
)
|
|
|
|
|
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")
|
|
|
|
|
2022-02-25 12:39:48 +08:00
|
|
|
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % "test"
|
|
|
|
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.0.0"
|
|
|
|
|
2018-11-06 21:43:03 +08:00
|
|
|
Seq(Revolver.settings: _*)
|
2022-02-25 12:39:48 +08:00
|
|
|
|
2018-11-06 21:43:03 +08:00
|
|
|
lazy val commonWeb = (project in file(".")).settings(name := "bbb-common-web", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
|
2017-03-10 04:32:14 +08:00
|
|
|
|
2019-03-28 04:36:34 +08:00
|
|
|
// See https://github.com/scala-ide/scalariform
|
|
|
|
// Config file is in ./.scalariform.conf
|
|
|
|
scalariformAutoformat := true
|
|
|
|
|
2022-12-21 00:07:08 +08:00
|
|
|
scalaVersion := "2.13.9"
|
2017-03-10 04:32:14 +08:00
|
|
|
//-----------
|
|
|
|
// 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
|
|
|
|
|
2018-11-06 21:43:03 +08:00
|
|
|
/** *************************
|
|
|
|
* 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"
|
|
|
|
*/
|
2017-03-10 04:32:14 +08:00
|
|
|
// Uncomment this to publish to local maven repo while commenting out the nexus repo
|
2018-11-06 21:43:03 +08:00
|
|
|
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
|
2017-03-10 04:32:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
// 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>
|
2018-11-06 21:43:03 +08:00
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<id>ritzalam</id>
|
|
|
|
<name>Richard Alam</name>
|
|
|
|
<url>http://www.bigbluebutton.org</url>
|
|
|
|
</developer>
|
|
|
|
</developers>)
|
|
|
|
|
2017-03-10 04:32:14 +08:00
|
|
|
licenses := Seq("LGPL-3.0" -> url("http://opensource.org/licenses/LGPL-3.0"))
|
|
|
|
|
|
|
|
homepage := Some(url("http://www.bigbluebutton.org"))
|
2021-06-23 23:17:35 +08:00
|
|
|
|
2022-12-31 05:17:48 +08:00
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
"javax.validation" % "validation-api" % "2.0.1.Final",
|
2024-01-05 22:34:03 +08:00
|
|
|
"org.springframework.boot" % "spring-boot-starter-validation" % "2.7.17",
|
2022-12-31 05:17:48 +08:00
|
|
|
"org.springframework.data" % "spring-data-commons" % "2.7.6",
|
|
|
|
"org.apache.httpcomponents" % "httpclient" % "4.5.13",
|
2024-03-06 10:08:30 +08:00
|
|
|
"org.postgresql" % "postgresql" % "42.7.2",
|
2022-12-31 05:17:48 +08:00
|
|
|
"org.hibernate" % "hibernate-core" % "5.6.1.Final",
|
|
|
|
"org.flywaydb" % "flyway-core" % "7.8.2",
|
2023-06-06 18:08:14 +08:00
|
|
|
"com.zaxxer" % "HikariCP" % "4.0.3",
|
2023-06-06 18:12:13 +08:00
|
|
|
"commons-validator" % "commons-validator" % "1.7",
|
2023-06-06 18:08:14 +08:00
|
|
|
"org.apache.tika" % "tika-core" % "2.8.0",
|
2024-03-13 02:24:02 +08:00
|
|
|
"org.apache.tika" % "tika-parsers-standard-package" % "2.8.0",
|
|
|
|
"org.scala-lang.modules" %% "scala-xml" % "2.2.0",
|
|
|
|
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "3.1.0"
|
2022-12-31 05:17:48 +08:00
|
|
|
)
|