-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.sbt
65 lines (46 loc) · 1.8 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
name := "ascii-graphs"
organization := "com.github.mdr"
version := "0.0.6"
scalaVersion := "2.12.1"
crossScalaVersions := Seq("2.9.1", "2.9.2", "2.10.1")
scalacOptions ++= Seq("-deprecation")
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.13.4" % "test"
// Screen-sized dependency graph:
// libraryDependencies += "org.vert-x" % "vertx-core" % "1.3.1.final"
EclipseKeys.withSource := true
EclipseKeys.eclipseOutput := Some("bin")
//net.virtualvoid.sbt.graph.Plugin.graphSettings
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
ScalariformKeys.preferences <<= baseDirectory.apply { dir =>
scalariform.formatter.preferences.PreferencesImporterExporter.loadPreferences((dir / "formatterPreferences.properties").getPath)
}
publishMavenStyle := true
publishArtifact in Test := false
publishTo <<= isSnapshot(
if (_) Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/")
else Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/"))
pomExtra := {
<inceptionYear>2012</inceptionYear>
<url>http://github.com/mdr/ascii-graphs</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:mdr/ascii-graphs.git</url>
<connection>scm:git:[email protected]:mdr/ascii-graphs</connection>
</scm>
<developers>
<developer>
<id>mdr</id>
<name>Matt Russell</name>
<url>https://github.com/mdr/</url>
</developer>
</developers>
}
// scalacOptions in (Compile, doc) += "-diagrams"