7 import sbtassembly.Plugin._
14 scalaVersion := "2.10.0"
16 organization := "net.setminami"
18 publishMavenStyle := true
20 publishArtifact in Test := false
22 pomIncludeRepository := { _ => false }
24 seq(assemblySettings: _*)
26 mainClass in assembly := Some("org.blackquill.main")
29 mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
31 case PathList("META-INF", xs @ _*) => MergeStrategy.discard
32 case _ => MergeStrategy.first
36 scalacOptions ++= Seq("-encoding","UTF-8")
38 libraryDependencies ++= Seq(
39 "org.apache.commons" % "commons-lang3" % "3.1",
40 "commons-io" % "commons-io" % "2.4",
41 "commons-logging" % "commons-logging" % "1.0.4",
42 "uk.ac.ed.ph.snuggletex" % "snuggletex-core" % "1.2.2",
43 "org.scalacheck" %% "scalacheck" % "1.10.1" % "test"
48 "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
49 "releases" at "http://oss.sonatype.org/content/repositories/releases",
50 "www2.ph.ed.ac.uk-releases" at "http://www2.ph.ed.ac.uk/maven2",
51 "Sonatype Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
52 "Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases"
55 publishTo <<= version { (v: String) =>
56 val nexus = "https://oss.sonatype.org/"
57 if (v.trim.endsWith("SNAPSHOT"))
58 Some("snapshots" at nexus + "content/repositories/snapshots")
60 Some("releases" at nexus + "service/local/staging/deploy/maven2")
64 <url>http://jsuereth.com/scala-arm</url>
67 <name>BSD-style</name>
68 <url>http://www.opensource.org/licenses/bsd-license.php</url>
69 <distribution>repo</distribution>
73 <url>git@github.com:setminami/BlackQuill</url>
74 <connection>scm:git:git@github.com:setminami/BlackQuill.git</connection>
79 <name>Setsushi Minami</name>
80 <url>http://setminami.net</url>