-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
56 lines (49 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
val previousVersion = "1.1.0"
inThisBuild(Def.settings(
version := "1.1.1-SNAPSHOT",
organization := "org.scala-js",
crossScalaVersions := Seq("2.12.8", "2.10.7", "2.11.12", "2.13.0", "3.0.0"),
scalaVersion := crossScalaVersions.value.head,
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
versionScheme := Some("semver-spec"),
homepage := Some(url("https://www.scala-js.org/")),
licenses += ("BSD New",
url("https://github.com/scala-js/scala-js-stubs/blob/main/LICENSE")),
scmInfo := Some(ScmInfo(
url("https://github.com/scala-js/scala-js-stubs"),
"scm:git:[email protected]:scala-js/scala-js-stubs.git",
Some("scm:git:[email protected]:scala-js/scala-js-stubs.git"))),
))
lazy val `scalajs-stubs`: Project = project.in(file("."))
.settings(
mimaPreviousArtifacts ++= {
Set(organization.value %% moduleName.value % previousVersion)
},
/* Do not fail mimaReportBinaryIssues when mimaPreviousArtifacts is empty.
* We specifically set it to empty above when binary compat is irrelevant.
*/
mimaFailOnNoPrevious := false,
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>
</developers>
),
pomIncludeRepository := { _ => false },
)