-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (70 loc) · 2.77 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
import org.scalajs.sbtplugin.ScalaJSPlugin
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys._
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/cassandra-driver"))
lazy val root = (project in file(".")).
enablePlugins(ScalaJSPlugin).
settings(
name := "cassandra-driver",
organization := "io.scalajs.npm",
description := "Cassandra-driver 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" %%% "nodejs" % 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/cassandra-driver</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/cassandra-driver.git</connection>
<developerConnection>scm:git:[email protected]:scalajs-io/cassandra-driver.git</developerConnection>
<url>github.com/scalajs-io/cassandra-driver.git</url>
</scm>
<developers>
<developer>
<id>ldaniels528</id>
<name>Lawrence Daniels</name>
<email>[email protected]</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