-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
48 lines (43 loc) · 1.49 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
enablePlugins(ScalaJSPlugin)
name := "react4s"
organization := "com.github.ahnfelt"
version := "0.10.0-SNAPSHOT"
// Publish cross versions with: sbt +publish
crossScalaVersions := Seq("2.12.11", scalaVersion.value)
scalaVersion := "2.13.2"
scalacOptions += "-feature"
// Absolute paths ended up in the generated source maps
scalaJSLinkerConfig := {
val fastOptJSURI = (artifactPath in (Compile, fastOptJS)).value.toURI
scalaJSLinkerConfig.value.withRelativizeSourceMapBase(Some(fastOptJSURI))
}
publishMavenStyle := true
publishArtifact in Test := false
credentials += Credentials(Path.userHome / "Documents" / "keys" / "sbt-credentials")
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 :=
<url>https://github.com/Ahnfelt/react4s</url>
<licenses>
<license>
<name>MIT-style</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:Ahnfelt/react4s.git</url>
<connection>scm:git:git@github.com:Ahnfelt/react4s.git</connection>
</scm>
<developers>
<developer>
<id>ahnfelt</id>
<name>Joakim Ahnfelt-Rønne</name>
<url>https://github.com/Ahnfelt</url>
</developer>
</developers>