-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.sbt
46 lines (35 loc) · 1.34 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
name := "fm-sbt-s3-resolver"
description := "SBT S3 Resolver Plugin"
scalacOptions := Seq(
"-encoding", "UTF-8",
"-unchecked",
"-deprecation",
"-language:implicitConversions",
"-feature",
"-Xlint"
) ++ (if (scalaVersion.value.startsWith("2.11")) Seq(
// Scala 2.11 specific compiler flags
"-Ywarn-unused-import"
) else Nil) ++ (if (scalaVersion.value.startsWith("2.12")) Seq(
// Scala 2.12 specific compiler flags
// NOTE: These are currently broken on Scala <= 2.12.6 when using Java 9+ (will hopefully be fixed in 2.12.7)
//"-opt:l:inline",
//"-opt-inline-from:<sources>",
) else Nil)
enablePlugins(SbtPlugin)
scriptedBufferLog := false
// Don't depend on publishLocal when running "scripted". This allows us to run
// "^publishLocal" for the crossSbtVersions and then run "scripted" on arbitrary
// SBT versions for testing.
scriptedDependencies := {}
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
crossSbtVersions := Vector("0.13.18", "1.1.0")
val amazonSDKVersion = "1.12.597"
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-s3" % amazonSDKVersion,
"com.amazonaws" % "aws-java-sdk-sts" % amazonSDKVersion,
"org.apache.ivy" % "ivy" % "2.4.0",
"org.scalatest" %% "scalatest" % "3.2.10" % Test
)
publishTo := sonatypePublishToBundle.value
ThisBuild / versionScheme := Some("semver-spec")