This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
67 lines (63 loc) · 1.88 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
import Dependencies._
import sbt.ScriptedPlugin.autoImport._
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value)
lazy val baseSettings = Seq(
organization := "com.chatwork",
homepage := Some(url("https://github.com/chatwork/sbt-wix-embedded-mysql")),
licenses := List("The MIT License" -> url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
id = "j5ik2o",
name = "Junichi Kato",
email = "[email protected]",
url = url("https://blog.j5ik2o.me")
),
Developer(
id = "exoego",
name = "TATSUNO Yasuhiro",
email = "[email protected]",
url = url("https://www.exoego.net")
)
),
scalaVersion := Versions.scala212Version,
scalacOptions ++= (
Seq(
"-feature",
"-deprecation",
"-unchecked",
"-encoding",
"UTF-8",
"-language:_",
"-Ydelambdafy:method",
"-target:jvm-1.8",
"-Yrangepos",
"-Ywarn-unused"
)
),
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
Test / publishArtifact := false,
Test / parallelExecution := false,
sbtPlugin := true
)
val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(baseSettings)
.settings(
name := "sbt-wix-embedded-mysql",
scriptedBufferLog := false,
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dproject.version=" + version.value)
},
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.14" % Test,
"com.wix" % "wix-embedded-mysql" % "4.6.2"
)
)
addCommandAlias("lint", ";scalafmtCheck;test:scalafmtCheck;scalafmtSbtCheck;scalafixAll --check")
addCommandAlias("fmt", ";scalafmtAll;scalafmtSbt;scalafix RemoveUnused")