OSDN Git Service

delete reavel.js template
[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.7"
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 seq(aetherPublishSettings: _*)
27
28 mainClass in assembly := Some("org.blackquill.main")
29
30 credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
31
32 mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
33   {
34     case PathList("META-INF", xs @ _*) => MergeStrategy.discard
35     case _ => MergeStrategy.first
36   }
37 }
38
39 scalacOptions ++= Seq("-encoding","UTF-8")
40
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"
47 )
48
49
50 resolvers ++= Seq(
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"
56 )
57
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")
62   else
63     Some("releases"  at nexus + "service/local/staging/deploy/maven2")
64 }
65
66 pomExtra := (
67   <url>http://setminami.net/BlackQuill</url>
68   <licenses>
69     <license>
70       <name>BSD-style</name>
71       <url>http://www.opensource.org/licenses/bsd-license.php</url>
72       <distribution>repo</distribution>
73     </license>
74   </licenses>
75   <scm>
76     <url>git@github.com:setminami/BlackQuill</url>
77     <connection>scm:git:git@github.com:setminami/BlackQuill.git</connection>
78   </scm>
79   <developers>
80     <developer>
81       <id>SetMinami</id>
82       <name>Setsushi Minami</name>
83       <url>http://setminami.net</url>
84     </developer>
85   </developers>)
86
87 assemblySettings
88