This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
forked from scanamo/scanamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
126 lines (104 loc) · 3.82 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name := "scanamo"
organization := "com.gu"
scalaVersion := "2.12.1"
crossScalaVersions := Seq("2.11.8", scalaVersion.value)
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-dynamodb" % "1.11.78",
"com.chuusai" %% "shapeless" % "2.3.2",
"org.typelevel" %% "cats-free" % "0.9.0",
"com.github.mpilquist" %% "simulacrum" % "0.10.0",
"org.typelevel" %% "macro-compat" % "1.1.1",
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch),
// Use Joda for custom conversion example
"org.joda" % "joda-convert" % "1.8.1" % Provided,
"joda-time" % "joda-time" % "2.9.7" % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test,
"org.scalacheck" %% "scalacheck" % "1.13.4" % Test
)
// for simulacrum
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
)
dynamoDBLocalDownloadDir := file(".dynamodb-local")
dynamoDBLocalPort := 8042
startDynamoDBLocal := startDynamoDBLocal.dependsOn(compile in Test).value
test in Test := (test in Test).dependsOn(startDynamoDBLocal).value
testOptions in Test += dynamoDBLocalTestCleanup.value
tut := tut.dependsOn(startDynamoDBLocal).value
tut <<= (tut, stopDynamoDBLocal){ (tut, stop) => tut.doFinally(stop)}
enablePlugins(MicrositesPlugin, SiteScaladocPlugin)
includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.yml"
ghpages.settings
com.typesafe.sbt.SbtGhPages.GhPagesKeys.ghpagesNoJekyll := false
git.remoteRepo := "[email protected]:guardian/scanamo.git"
doctestMarkdownEnabled := true
doctestDecodeHtmlEntities := true
doctestWithDependencies := false
doctestTestFramework := DoctestTestFramework.ScalaTest
parallelExecution in Test := false
homepage := Some(url("https://guardian.github.io/scanamo/"))
licenses := Seq("Apache V2" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
publishMavenStyle := true
publishArtifact in Test := false
scmInfo := Some(ScmInfo(
url("https://github.com/guardian/scanamo"),
"scm:git:[email protected]:guardian/scanamo.git"
))
pomExtra := {
<developers>
<developer>
<id>philwills</id>
<name>Phil Wills</name>
<url>https://github.com/philwills</url>
</developer>
</developers>
}
import ReleaseTransformations._
releaseCrossBuild := true
test in assembly := {}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo := {
val nexus = "http://nexus.internal.dcmn.lan/"
if (isSnapshot.value)
Some("snapshots" at nexus + "repository/dcmn-snapshots/")
else
Some("releases" at nexus + "repository/dcmn-releases/")
}
micrositeName := "Scanamo"
micrositeDescription := "Scanamo: simpler DynamoDB access for Scala"
micrositeAuthor := "Scanamo Contributors"
micrositeGithubOwner := "guardian"
micrositeGithubRepo := "scanamo"
micrositeBaseUrl := "scanamo"
micrositeDocumentationUrl := "/scanamo/latest/api"
micrositeHighlightTheme := "color-brewer"
micrositePalette := Map(
"brand-primary" -> "#951c55",
"brand-secondary" -> "#005689",
"brand-tertiary" -> "#00456e",
"gray-dark" -> "#453E46",
"gray" -> "#837F84",
"gray-light" -> "#E3E2E3",
"gray-lighter" -> "#F4F3F4",
"white-color" -> "#FFFFFF"
)
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.copy(`classifier` = Some("assembly"))
}
addArtifact(artifact in (Compile, assembly), assembly)