2018-11-09 17:33:45 +08:00
|
|
|
import org.bigbluebutton.build._
|
2015-06-11 04:13:40 +08:00
|
|
|
|
2015-06-11 04:45:29 +08:00
|
|
|
description := "BigBlueButton custom FS-ESL client built on top of FS-ESL Java library."
|
|
|
|
|
2022-12-21 00:07:08 +08:00
|
|
|
version := "0.0.9-SNAPSHOT"
|
2018-11-09 17:33:45 +08:00
|
|
|
|
|
|
|
val compileSettings = Seq(
|
|
|
|
organization := "org.bigbluebutton",
|
|
|
|
|
|
|
|
scalacOptions ++= List(
|
|
|
|
"-unchecked",
|
|
|
|
"-deprecation",
|
|
|
|
"-Xlint",
|
|
|
|
"-Ywarn-dead-code",
|
|
|
|
"-language:_",
|
2022-12-21 00:07:08 +08:00
|
|
|
"-target:11",
|
2018-11-09 17:33:45 +08:00
|
|
|
"-encoding", "UTF-8"
|
|
|
|
),
|
|
|
|
javacOptions ++= List(
|
|
|
|
"-Xlint:unchecked",
|
|
|
|
"-Xlint:deprecation"
|
|
|
|
)
|
|
|
|
)
|
2015-06-11 04:13:40 +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")
|
|
|
|
|
2018-11-09 17:33:45 +08:00
|
|
|
Seq(Revolver.settings: _*)
|
2018-11-10 03:08:20 +08:00
|
|
|
lazy val bbbFSESLClient = (project in file(".")).settings(name := "bbb-fsesl-client", libraryDependencies ++= Dependencies.runtime).settings(compileSettings)
|
2015-06-11 04:13:40 +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
|
|
|
|
|
2022-12-21 00:07:08 +08:00
|
|
|
scalaVersion := "2.13.9"
|
2022-03-11 04:51:05 +08:00
|
|
|
|
2018-11-10 03:08:20 +08:00
|
|
|
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
|
2015-06-11 04:13:40 +08:00
|
|
|
|
2015-12-10 00:46:38 +08:00
|
|
|
//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")
|
|
|
|
//}
|
2015-06-11 04:13:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
// Enables publishing to maven repo
|
|
|
|
publishMavenStyle := true
|
|
|
|
|
|
|
|
publishArtifact in Test := false
|
|
|
|
|
2017-10-26 02:23:33 +08:00
|
|
|
// http://www.scala-sbt.org/release/docs/Artifacts.html
|
|
|
|
// disable publishing the main API jar
|
2018-11-10 03:08:20 +08:00
|
|
|
publishArtifact in(Compile, packageDoc) := false
|
2017-10-26 02:23:33 +08:00
|
|
|
|
|
|
|
// disable publishing the main sources jar
|
2018-11-10 03:08:20 +08:00
|
|
|
publishArtifact in(Compile, packageSrc) := false
|
2017-10-26 02:23:33 +08:00
|
|
|
|
2015-06-11 04:13:40 +08:00
|
|
|
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-10 03:08:20 +08:00
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<id>ritzalam</id>
|
|
|
|
<name>Richard Alam</name>
|
|
|
|
<url>http://www.bigbluebutton.org</url>
|
|
|
|
</developer>
|
|
|
|
</developers>)
|
|
|
|
|
2015-06-11 04:13:40 +08:00
|
|
|
licenses := Seq("Apache License, Version 2.0" -> url("http://opensource.org/licenses/Apache-2.0"))
|
|
|
|
|
2022-02-25 12:39:48 +08:00
|
|
|
homepage := Some(url("https://bigbluebutton.org"))
|