This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
54 lines (42 loc) · 2.4 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name := "sbt-sqs"
description := "Support for running ElasticMQ in your integration tests"
organization := "com.localytics"
scalaVersion := "2.12.4"
// Sane set of compiler flags
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs
"-encoding", "UTF-8", // Specify character encoding used by source files (yes, this is 2 args)
"-feature", // Emit warning and location for usages of features that should be imported explicitly
"-unchecked", // Enable detailed unchecked (erasure) warnings
"-Xfatal-warnings", // Fail the compilation if there are any warnings
"-Xlint", // Enable recommended additional warnings
"-Xfuture", // Turn on future language features.
"-Yno-adapted-args" // Do not adapt an argument list (by inserting () or creating a tuple) to match the receiver
)
// This is an auto plugin
// http://www.scala-sbt.org/1.x/docs/Plugins.html#Creating+an+auto+plugin
sbtPlugin := true
// Generate a POM
// http://www.scala-sbt.org/1.x/docs/Publishing.html#Modifying+the+generated+POM
publishMavenStyle := false
// MIT License for bintray
// https://github.com/softprops/bintray-sbt#licenses
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
// Publish to the Localytics organization
// https://github.com/softprops/bintray-sbt#publishing
bintrayOrganization := Some("localytics")
// Bintray labels
// https://github.com/softprops/bintray-sbt#labels
bintrayPackageLabels := Seq("localytics", "sbt", "aws", "sqs", "elasticmq", "test", "testing")
// Error on conflicting dependencies
// http://www.scala-sbt.org/1.x/docs/Library-Management.html#Conflict+Management
conflictManager := ConflictManager.strict
// Error on circular dependencies
// http://www.scala-sbt.org/1.x/docs/sbt-0.13-Tech-Previews.html#Circular+dependency
updateOptions := updateOptions.value.withCircularDependencyLevel(CircularDependencyLevel.Error)
libraryDependencies +=
( "org.scalatest" %% "scalatest" % "3.0.4" % "test"
// Scalatest 3.0.4 is slightly behind sbt and Scala dependencies for these two modules, so they must be excluded
// while Strict dependency checking is enabled. Once 3.1.x is released this will likely be resolved.
exclude("org.scala-lang.modules", s"scala-xml_${scalaBinaryVersion.value}")
exclude("org.scala-lang.modules", s"scala-parser-combinators_${scalaBinaryVersion.value}") )