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 seq(aetherPublishSettings: _*)
28 mainClass in assembly := Some("org.blackquill.main")
30 credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
32 mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
34 case PathList("META-INF", xs @ _*) => MergeStrategy.discard
35 case _ => MergeStrategy.first
39 scalacOptions ++= Seq("-encoding","UTF-8")
41 libraryDependencies ++= Seq(
42 "org.apache.commons" % "commons-lang3" % "3.1",
43 "commons-io" % "commons-io" % "2.4",
44 "commons-logging" % "commons-logging" % "1.0.4",
45 "uk.ac.ed.ph.snuggletex" % "snuggletex-core" % "1.2.2",
46 "org.scalacheck" %% "scalacheck" % "1.10.1" % "test"
51 "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
52 "releases" at "http://oss.sonatype.org/content/repositories/releases",
53 "www2.ph.ed.ac.uk-releases" at "http://www2.ph.ed.ac.uk/maven2",
54 "Sonatype Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
55 "Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases"
58 publishTo <<= version { (v: String) =>
59 val nexus = "https://oss.sonatype.org/"
60 if (v.trim.endsWith("SNAPSHOT"))
61 Some("snapshots" at nexus + "content/repositories/snapshots")
63 Some("releases" at nexus + "service/local/staging/deploy/maven2")
67 <url>http://setminami.net/BlackQuill</url>
70 <name>BSD-style</name>
71 <url>http://www.opensource.org/licenses/bsd-license.php</url>
72 <distribution>repo</distribution>
76 <url>git@github.com:setminami/BlackQuill</url>
77 <connection>scm:git:git@github.com:setminami/BlackQuill.git</connection>
82 <name>Setsushi Minami</name>
83 <url>http://setminami.net</url>