-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
60 lines (54 loc) · 1.78 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
val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at s"${nexus}content/repositories/snapshots")
else Some("releases" at s"${nexus}service/local/staging/deploy/maven2")
},
pomExtra := {
<url>https://github.com/fomkin/petrovich-scala</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:fomkin/petrovich-scala.git</url>
<connection>scm:git:[email protected]:fomkin/petrovich-scala.git</connection>
</scm>
<developers>
<developer>
<id>fomkin</id>
<name>Aleksey Fomkin</name>
<email>[email protected]</email>
</developer>
</developers>
}
)
val commonSettings = publishSettings ++ Seq(
scalaVersion := "2.11.7",
organization := "com.github.fomkin",
version := "0.2.0-SNAPSHOT",
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.0-M7" % "test",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Xfatal-warnings",
"-language:postfixOps",
"-language:implicitConversions"
)
)
lazy val `petrovich-scala` = crossProject.crossType(CrossType.Pure).
settings(commonSettings: _*).
settings(
normalizedName := "petrovich-scala",
sourceGenerators in Compile <+= sourceManaged in Compile map GenRules
)
lazy val petrovichJS = `petrovich-scala`.js
lazy val petrovichJVM = `petrovich-scala`.jvm
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo")))
publishArtifact := false