-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (59 loc) · 2.46 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
66
67
68
69
70
71
lazy val `sbt-release` = project in file(".")
sbtPlugin := true
name := "sbt-scaladoc-settings-plugin"
organization := "org.dmonix.sbt"
//sbt 13.x is built using Scala 2.10 hence we can't use 2.11 to build plugins
scalaVersion := "2.10.6"
//----------------------------
//Info for where and how to publish artifacts
//Uses the plugin from : https://github.com/pnerg/sbt-scaladoc-settings-plugin
//----------------------------
import org.dmonix.sbt._
publishTo <<= version {MavenCentralSettings.publishURL(_)}
credentials ++= CredentialsSettings.publishCredentials
//---------------------------------------
// Compiler directives
//---------------------------------------
javacOptions ++= Seq("-source", "1.7", "-target", "1.7", "-Xlint")
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-language:higherKinds", "-target:jvm-1.7")
scalacOptions in (Compile, doc) ++= Seq("-doc-title", "SBT Scaladoc Settings Plugin")
scalacOptions in (Compile, doc) ++= org.dmonix.sbt.ScalaDocSettings.rootDoc
scalacOptions in (Compile, doc) ++= Seq("-doc-footer", "Copyright (c) 2017 Peter Nerg, Apache License v2.0.")
//this setting overrides the default sequence of files to add in packageDoc
//it's needed in order for the copyDocAssetsTask task to execute
mappings in (Compile, packageDoc) <<= copyDocAssetsTask
//---------------------------------------
libraryDependencies ++= Seq(
"net.sourceforge.plantuml" % "plantuml" % "8056",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
//---------------------------------------
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := {
if (scalaBinaryVersion.value == "2.10") false
else false
}
//----------------------------
//needed to create the proper pom.xml for publishing to mvn central
//----------------------------
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/pnerg/sbt-scaladoc-settings-plugin</url>
<licenses>
<license>
<name>Apache</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>git@github.com:pnerg/sbt-scaladoc-settings-plugin.git</url>
<connection>scm:git:git@github.com/pnerg/sbt-scaladoc-settings-plugin.git</connection>
</scm>
<developers>
<developer>
<id>pnerg</id>
<name>Peter Nerg</name>
<url>http://github.com/pnerg</url>
</developer>
</developers>)