-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
50 lines (46 loc) · 1.52 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
def preventPublication(p: Project) =
p.settings(
publish :=(),
publishLocal :=(),
// publishSigned :=(),
// publishLocalSigned :=(),
publishArtifact := false,
publishTo := Some(Resolver.file("Unused transient repository", target.value / "fakepublish")),
packagedArtifacts := Map.empty)
lazy val root = preventPublication(project.in(file("."))).
enablePlugins(ScalaJSPlugin).
aggregate(shoconJS, shoconJVM)
lazy val shocon = crossProject.in(file(".")).
settings(
name := "shocon",
organization := "org.querki",
version := "0.3",
scalaVersion := "2.11.8",
libraryDependencies += "com.lihaoyi" %%% "fastparse" % "0.2.1",
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
homepage := Some(url("http://www.querki.net/")),
licenses += ("MIT License", url("http://www.opensource.org/licenses/mit-license.php")),
scmInfo := Some(ScmInfo(
url("https://github.com/jducoeur/shocon"),
"scm:git:[email protected]/jducoeur/shocon.git",
Some("scm:git:[email protected]/jducoeur/shocon.git"))),
publishMavenStyle := true,
pomExtra := (
<developers>
<developer>
<id>jducoeur</id>
<name>Mark Waks</name>
<url>https://github.com/jducoeur/</url>
</developer>
</developers>
),
pomIncludeRepository := { _ => false }
)
lazy val shoconJS = shocon.js
lazy val shoconJVM = shocon.jvm