Commit ef60273b authored by mathieu's avatar mathieu

Fix dependency

parent 2e8d97f3
target
project/target
import sbt.Keys._
import com.amazonaws.auth.{AWSCredentialsProviderChain, DefaultAWSCredentialsProviderChain}
import com.amazonaws.auth.profile.ProfileCredentialsProvider
s3CredentialsProvider := { (bucket: String) =>
new AWSCredentialsProviderChain(
new ProfileCredentialsProvider("default"),
DefaultAWSCredentialsProviderChain.getInstance()
)
}
resolvers += "Releases resolver" at "s3://repo.protogest.net/release"
resolvers += "Snapshots resolver" at "s3://repo.protogest.net/snapshot"
name := "play-rest-api"
organization := "org.ets.lca"
scalaVersion := "2.11.8"
libraryDependencies += "com.netaporter" %% "scala-uri" % "0.4.14"
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.0"
libraryDependencies +="org.apache.hadoop" % "hadoop-client" % "2.6.0"
libraryDependencies += "org.apache.hadoop" % "hadoop-client" % "2.6.0"
libraryDependencies += "org.ets.lca" % "ububi-lca-calculator" % "1.0"
libraryDependencies ++= Seq(
ws
......@@ -15,17 +27,13 @@ libraryDependencies ++= Seq(
// The Play project itself
lazy val root = (project in file("."))
.enablePlugins(Common, PlayScala, GatlingPlugin)
.settings(
name := """play-rest-api"""
)
.enablePlugins(Common, PlayScala, GatlingPlugin) //Common
// Documentation for this project:
// sbt "project docs" "~ paradox"
// open docs/target/paradox/site/index.html
lazy val docs = (project in file("docs")).enablePlugins(ParadoxPlugin).
settings(
paradoxProperties += ("download_url" -> "https://example.lightbend.com/v1/download/play-rest-api")
//paradoxProperties += ("download_url" -> "https://example.lightbend.com/v1/download/play-rest-api")
)
import sbt.Keys._
import sbt._
import sbt.plugins.JvmPlugin
object Common extends AutoPlugin{
override def trigger = allRequirements
override def requires: sbt.Plugins = JvmPlugin
override def projectSettings = Seq(
organization := "com.lightbend.restapi",
version := "1.0-SNAPSHOT",
resolvers += Resolver.typesafeRepo("release"),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Xfatal-warnings"
),
scalacOptions in Test ++= Seq("-Yrangepos"),
autoAPIMappings := true
)
}
sbt.version=0.13.13
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.9")
addSbtPlugin("io.gatling" % "gatling-sbt" % "2.2.1")
//addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.0")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.2.1")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.3.1")
addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.18.0")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment