Skip to content

Instantly share code, notes, and snippets.

@guillaumebadin
Last active October 27, 2015 14:56
Show Gist options
  • Select an option

  • Save guillaumebadin/90b65d4141c050af5ba9 to your computer and use it in GitHub Desktop.

Select an option

Save guillaumebadin/90b65d4141c050af5ba9 to your computer and use it in GitHub Desktop.
Build multiproject
import play.PlayImport.PlayKeys._
name := """ubilab"""
version := "1.0-SNAPSHOT"
routesImport ++= Seq("utils.Binders.LaboratoryIdPathBindable",
"controllers.ubilab._",
"models.ubilab.laboratories.LaboratoryId")
scalaVersion := "2.11.7"
resolvers += "Sonatype OSS Snapshots" at "https://osss.sonatype.org/content/repositories/snapshots"
resolvers += "Typesafe repository mwn" at "http://repo.typesafe.com/typesafe/maven-releases/"
resolvers += Resolver.url("Edulify Repository", url("http://edulify.github.io/modules/releases/"))(Resolver.ivyStylePatterns)
resolvers += "jcenter" at "http://jcenter.bintray.com"
// Mail plugins
libraryDependencies +="com.typesafe.play.plugins" %% "play-plugins-mailer" % "2.3.0"
libraryDependencies += "com.typesafe.slick" %% "slick" % "2.1.0"
libraryDependencies += "com.typesafe.play" %% "play-slick" % "0.8.1"
libraryDependencies ++= Seq("joda-time" % "joda-time" % "2.4",
"org.joda" % "joda-convert" % "1.6",
"com.github.tototoshi" %% "slick-joda-mapper" % "1.2.0")
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.34"
libraryDependencies += "com.edulify" %% "play-hikaricp" % "2.0.6"
libraryDependencies += "org.scala-lang.modules" %% "scala-async" % "0.9.2"
//libraryDependencies += "com.github.tototoshi" %% "scala-csv" % "1.2.2"
libraryDependencies += "io.intercom" % "intercom-java" % "1.1.0"
libraryDependencies += ("ca.uhn.hapi" % "hapi" % "2.2") .exclude("org.slf4j", "slf4j-api")
libraryDependencies += ("ca.uhn.hapi" % "hapi-structures-v251" % "2.2").exclude("org.slf4j", "slf4j-api")
libraryDependencies += "commons-net" % "commons-net" % "3.3"
libraryDependencies += "commons-io" % "commons-io" % "2.4"
//libraryDependencies += ("info.folone" %% "poi-scala" % "0.15").exclude("org.slf4j", "slf4j-api")
libraryDependencies += ("info.folone" %% "poi-scala" % "0.14").exclude("org.slf4j", "slf4j-api")
libraryDependencies += "io.github.cloudify" %% "spdf" % "1.3.1"
libraryDependencies += "com.itextpdf" % "itextpdf" % "5.5.6"
libraryDependencies += "com.jcraft" % "jsch" % "0.1.53"
libraryDependencies += "org.specs2" %% "specs2-core" % "2.4.17" % "test"
libraryDependencies += "org.specs2" %% "specs2-junit" % "2.4.17" % "test"
libraryDependencies += "com.maxmind.geoip2" % "geoip2" % "2.3.1"
libraryDependencies ++= Seq(
( "org.apache.jclouds.api" % "cloudfiles" % "1.9.0").exclude("org.slf4j", "slf4j-api"),
("org.apache.jclouds.provider" % "cloudfiles-uk" % "1.9.0").exclude("org.slf4j", "slf4j-api")
)
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
ws
)
import play.PlayImport.PlayKeys._
import play.PlayImport._
import play.PlayScala
import sbt.Keys._
import sbt._
object ApplicationBuild extends Build {
val branch = "git rev-parse --abbrev-ref HEAD".!!.trim
val commit = "git rev-parse --short HEAD".!!.trim
val buildTime = (new java.text.SimpleDateFormat("yyyyMMdd-HHmmss")).format(new java.util.Date())
val appVersion = "%s-%s-%s".format(branch, commit, buildTime)
logLevel := Level.Warn
scalaVersion in ThisBuild := "2.11.7"
/**
* Resolvers
*/
name := "ubilab"
lazy val serviceUbilab = (project in file("modules/service-ubilab"))
.enablePlugins(PlayScala)
.dependsOn(ProjectRef(uri("https://github.com/silk-digital/scala-csv.git#working-week-38"), "scala-csv"))
lazy val main = (project in file("."))
.enablePlugins(PlayScala).dependsOn(serviceUbilab).aggregate(serviceUbilab)
}
logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Typesafe repository mwn" at "http://repo.typesafe.com/typesafe/maven-releases/"
// The Play plugin
addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.3.8")
Keys.fork in Test := false
logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Typesafe repository mwn" at "http://repo.typesafe.com/typesafe/maven-releases/"
// The Play plugin
addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.3.8")
Keys.fork in Test := false
// web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment