-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
60 lines (50 loc) · 1.99 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
organization := "com.github.mlangc"
name := "bracket-expression-beautifier"
version := "2.0.1"
scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.11.8", "2.12.8")
scalacOptions := Seq("-encoding", "utf8", "-feature", "-deprecation", "-Ywarn-unused", "-Ywarn-dead-code", "-Ywarn-unused-import")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
libraryDependencies += "com.storm-enroute" %% "scalameter" % "0.8.2" % "test"
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test"
libraryDependencies += "org.scalameta" %% "scalameta" % "1.6.0" % "test"
val testConsoleImports =
Seq(
"import com.github.mlangc.demo._",
"import com.github.mlangc.brackets.api._",
"import scala.meta._"
).mkString("\n", "\n", "\n")
initialCommands in(Test, console) := testConsoleImports
scalacOptions in(Compile, console) ~= (_.filterNot(opt => opt.startsWith("-Ywarn-") || opt.startsWith("-opt")))
scalacOptions in(Test, console) := (scalacOptions in (Compile, console)).value
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
excludeDependencies += "org.mongodb"
pomExtra := (
<url>https://github.com/mlangc/bracket-expression-beautifier</url>
<licenses>
<license>
<name>BSD-3-Clause</name>
<url>http://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/mlangc/bracket-expression-beautifier</url>
<connection>scm:git:https://github.com/mlangc/bracket-expression-beautifier.git</connection>
</scm>
<developers>
<developer>
<id>mlangc</id>
<name>Matthias Langer</name>
<url>http://mlangc.wordpress.com/</url>
</developer>
</developers>
)