-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
80 lines (73 loc) · 2.92 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
78
79
80
import org.scalajs.sbtplugin.ScalaJSPlugin
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys.{libraryDependencies, _}
import sbt._
import scala.language.postfixOps
val scalaJsIOVersion = "0.5.0"
val apiVersion = scalaJsIOVersion
val scalaJsVersion = "2.12.8"
homepage := Some(url("https://github.com/scalajs-io/html-to-json"))
lazy val root = (project in file(".")).
enablePlugins(ScalaJSPlugin).
settings(
name := "html-to-json",
organization := "io.scalajs.npm",
description := "Html-to-json API bindings for Scala.js",
version := apiVersion,
scalaVersion := scalaJsVersion,
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
autoCompilerPlugins := true,
scalaJSModuleKind := ModuleKind.CommonJSModule,
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaJsVersion,
"org.scalatest" %%% "scalatest" % "3.0.1" % "test",
"io.scalajs" %%% "dom-html" % scalaJsIOVersion,
"io.scalajs" %%% "jquery" % scalaJsIOVersion,
"io.scalajs" %%% "nodejs" % scalaJsIOVersion,
"io.scalajs.npm" %%% "request" % scalaJsIOVersion
))
/////////////////////////////////////////////////////////////////////////////////
// Publishing
/////////////////////////////////////////////////////////////////////////////////
lazy val publishingSettings = Seq(
sonatypeProfileName := "org.xerial",
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 :=
<url>https://github.com/scalajs-io/html-to-json</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/scalajs-io/html-to-json.git</connection>
<developerConnection>scm:git:git@github.com:scalajs-io/html-to-json.git</developerConnection>
<url>github.com/scalajs-io/html-to-json.git</url>
</scm>
<developers>
<developer>
<id>ldaniels528</id>
<name>Lawrence Daniels</name>
<email>lawrence.daniels@gmail.com</email>
<organization>io.scalajs</organization>
<organizationUrl>https://github.com/scalajs-io</organizationUrl>
<roles>
<role>Project-Administrator</role>
<role>Developer</role>
</roles>
<timezone>+7</timezone>
</developer>
</developers>
)
// loads the Scalajs-io root project at sbt startup
onLoad in Global := (Command.process("project root", _: State)) compose (onLoad in Global).value