-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
77 lines (68 loc) · 2.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// shadow sbt-scalajs' crossProject and CrossType until Scala.js 1.0.0 is released
import com.typesafe.tools.mima.core._
import sbtcrossproject.{crossProject, CrossType}
val previousVersion = "1.1.3"
inThisBuild(Def.settings(
crossScalaVersions := Seq("2.12.13", "2.11.12", "2.13.4"),
scalaVersion := crossScalaVersions.value.head,
version := "1.1.4-SNAPSHOT",
organization := "org.portable-scala",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-encoding",
"utf-8",
"-Xfatal-warnings",
),
homepage := Some(url("https://github.com/portable-scala/portable-scala-reflect")),
licenses += ("BSD New",
url("https://github.com/portable-scala/portable-scala-reflect/blob/master/LICENSE")),
scmInfo := Some(ScmInfo(
url("https://github.com/portable-scala/portable-scala-reflect"),
"scm:git:git@github.com:portable-scala/portable-scala-reflect.git",
Some("scm:git:git@github.com:portable-scala/portable-scala-reflect.git"))),
))
lazy val `portable-scala-reflect` = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(
scalacOptions in (Compile, doc) -= "-Xfatal-warnings",
mimaPreviousArtifacts +=
organization.value %%% moduleName.value % previousVersion,
publishMavenStyle := true,
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")
},
pomExtra := (
<developers>
<developer>
<id>sjrd</id>
<name>Sébastien Doeraene</name>
<url>https://github.com/sjrd/</url>
</developer>
<developer>
<id>gzm0</id>
<name>Tobias Schlatter</name>
<url>https://github.com/gzm0/</url>
</developer>
<developer>
<id>densh</id>
<name>Denys Shabalin</name>
<url>https://github.com/densh/</url>
</developer>
</developers>
),
pomIncludeRepository := { _ => false },
)
.jvmSettings(
// Macros
libraryDependencies += scalaOrganization.value % "scala-reflect" % scalaVersion.value % Provided,
// Speed up compilation a bit. Our .java files do not need to see the .scala files.
compileOrder := CompileOrder.JavaThenScala,
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",
)
.jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin))
.nativeConfigure(_.enablePlugins(ScalaNativeJUnitPlugin))