forked from sbt/flyway-sbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
31 lines (29 loc) · 959 Bytes
/
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
val flywayVersion = "7.4.0"
val pluginVersion = "7.4.0"
lazy val root = (project in file ("."))
.enablePlugins(SbtPlugin)
.settings(
name := "flyway-sbt",
organization := "io.github.davidmweber",
version := pluginVersion,
libraryDependencies ++= Seq(
"org.flywaydb" % "flyway-core" % flywayVersion
),
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-Xfuture"
),
scalacOptions in (Compile, doc) ++= {
Seq(
"-sourcepath",
(baseDirectory in LocalRootProject).value.getAbsolutePath,
"-doc-source-url",
s"""https://github.com/flyway/flyway-sbt/tree/${sys.process.Process("git rev-parse HEAD").lineStream_!.head}€{FILE_PATH}.scala"""
)
},
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)