OSDN Git Service

prepare up to Maven Central.
[blackquill/BlackQuill.git] / build.sbt
1 import AssemblyKeys._
2
3 import Keys._
4
5 import sbt._
6
7 import sbtassembly.Plugin._
8
9
10 name := "BlackQuill"
11
12 version := "0.1.0"
13
14 scalaVersion := "2.10.0"
15
16 organization := "net.setminami"
17
18 publishMavenStyle := true
19
20 publishArtifact in Test := false
21
22 pomIncludeRepository := { _ => false }
23
24 seq(assemblySettings: _*)
25
26 mainClass in assembly := Some("org.blackquill.main")
27
28
29 mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
30   {
31     case PathList("META-INF", xs @ _*) => MergeStrategy.discard
32     case _ => MergeStrategy.first
33   }
34 }
35
36 scalacOptions ++= Seq("-encoding","UTF-8")
37
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"
44 )
45
46
47 resolvers ++= Seq(
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"
53 )
54
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")
59   else
60     Some("releases"  at nexus + "service/local/staging/deploy/maven2")
61 }
62
63 pomExtra := (
64   <url>http://jsuereth.com/scala-arm</url>
65   <licenses>
66     <license>
67       <name>BSD-style</name>
68       <url>http://www.opensource.org/licenses/bsd-license.php</url>
69       <distribution>repo</distribution>
70     </license>
71   </licenses>
72   <scm>
73     <url>git@github.com:setminami/BlackQuill</url>
74     <connection>scm:git:git@github.com:setminami/BlackQuill.git</connection>
75   </scm>
76   <developers>
77     <developer>
78       <id>SetMinami</id>
79       <name>Setsushi Minami</name>
80       <url>http://setminami.net</url>
81     </developer>
82   </developers>)
83
84 assemblySettings
85