forked from sbt/sbt-pgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
56 lines (41 loc) · 1.38 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
import com.typesafe.sbt.SbtGhPages.ghpages
import com.typesafe.sbt.SbtGit._
import com.typesafe.sbt.SbtSite.site
import sbt.ScriptedPlugin._
versionWithGit
// library
// The library of PGP functions.
// Note: We're going to just publish this to the sbt repo now.
lazy val library =
Project("library", file("gpg-library")).settings(
name := "pgp-library",
libraryDependencies ++= Seq(parserCombinators, bouncyCastlePgp, dispatchDependency, specs2 % "test", sbtIo % "test")
)
// The sbt plugin.
lazy val plugin =
Project("plugin", file("pgp-plugin")).
dependsOn(library).
settings(
sbtPlugin := true,
name := "sbt-pgp",
libraryDependencies ++= Seq(dispatchDependency, sbtCoreNext.value),
publishLocal <<= publishLocal.dependsOn(publishLocal in library)
).
//settings(websiteSettings:_*).
settings(scriptedSettings:_*).
settings(
scriptedLaunchOpts += s"-Dproject.version=${version.value}"
)
// Website settings
site.settings
ghpages.settings
site.jekyllSupport()
site.includeScaladoc()
git.remoteRepo := "[email protected]:sbt/sbt-pgp.git"
site.addMappingsToSiteDir(mappings in packageDoc in Compile in library, "library/latest/api")
site.addMappingsToSiteDir(mappings in packageDoc in Compile in plugin, "plugin/latest/api")
// Release settings
Release.settings
// Disable publishing of root
publish := ()
//publishLocal := ()