-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
63 lines (52 loc) · 2.06 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
import sbt.Keys._
import sbt._
val projectName = "scala-js-plotlyjs"
val organisation = "org.openmole"
licenses := Seq("Affero GPLv3" -> url("http://www.gnu.org/licenses/"))
homepage := Some(url("https://github.com/openmole/scala-js-plotlyjs"))
scmInfo := Some(ScmInfo(url("https://github.com/openmole/scala-js-plotlyjs.git"), "[email protected]:openmole/scala-js-plotlyjs.git"))
pomExtra := (
<developers>
<developer>
<id>mathieu.leclaire</id>
<name>Mathieu Leclaire</name>
</developer>
</developers>
)
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseVersionBump := sbtrelease.Version.Bump.Minor
releaseTagComment := s"Releasing ${(ThisBuild / version).value}"
releaseCommitMessage := s"Bump version to ${(ThisBuild / version).value}"
sonatypeProfileName := organisation
publishConfiguration := publishConfiguration.value.withOverwrite(true)
publishTo := sonatypePublishToBundle.value
publishMavenStyle := true
releaseCrossBuild := true
autoCompilerPlugins := true
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
//setReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
ThisBuild / scalaVersion := "3.1.3"
ThisBuild / crossScalaVersions := Seq("2.13.8", "3.1.3")
lazy val plotlyjs: Project = Project(id = projectName, base = file(".")) enablePlugins (ScalaJSBundlerPlugin) settings(
name := projectName,
organization := organisation,
shellPrompt := { state => s"[${Project.extract(state).currentProject.id}] $$ " },
// Using webjars beacause plotly.js webpacking does not work properly
// jsDependencies += "org.webjars.bower" % "plotly.js" % "1.54.1" / "dist/plotly.min.js",
Compile / npmDependencies += "plotly.js"-> "2.13.3",
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.0.0",
"org.querki" %%% "querki-jsext" % "0.10" cross (CrossVersion.for3Use2_13)
)
)