Skip to content

Commit ae41cc9

Browse files
committed
Add sbt-ci-release settings
1 parent ebbd7de commit ae41cc9

File tree

2 files changed

+33
-16
lines changed

2 files changed

+33
-16
lines changed

build.sbt

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
addCommandAlias("restartWDS", "; demo/fastOptJS::stopWebpackDevServer; ~demo/fastOptJS::startWebpackDevServer")
22

33
lazy val root = project.in(file(".")).settings(commonSettings).aggregate(core, icons, lab, demo).settings(
4-
name := "scalajs-react-material-ui",
5-
// No, SBT, we don't want any artifacts for root.
6-
// No, not even an empty jar.
7-
publish := {},
8-
publishLocal := {},
9-
publishArtifact := false,
10-
Keys.`package` := file("")
11-
).settings(
12-
aggregate in doc := false
4+
name := "scalajs-react-material-ui",
5+
skip in publish := true
6+
)
7+
8+
inThisBuild(
9+
List(
10+
homepage := Some(url("https://github.com/kinoplan/scalajs-react-material-ui")),
11+
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
12+
developers := List(
13+
Developer(
14+
"kazievab",
15+
"Alexey Kaziev",
16+
"kazievab@gmail.com",
17+
url("https://github.com/kazievab")
18+
)
19+
),
20+
scmInfo := Some(
21+
ScmInfo(
22+
url("https://github.com/kinoplan/scalajs-react-material-ui"),
23+
"scm:git:git@github.com:kinoplan/scalajs-react-material-ui.git"
24+
)
25+
)
26+
)
1327
)
1428

1529
lazy val muiColorsGenerator = taskKey[Seq[File]]("mui-colors-generator")
@@ -55,18 +69,17 @@ lazy val demo = (project in file("demo")).dependsOn(core, lab)
5569
webpackDevServerExtraArgs := Seq("--inline"),
5670
yarnExtraArgs := Seq("--silent"),
5771
webpackConfigFile in fastOptJS := Some(baseDirectory.value / "dev.webpack.config.js"),
58-
// don't publish the demo
59-
publish := {},
60-
publishLocal := {},
61-
publishArtifact := false,
62-
Keys.`package` := file("")
72+
skip in publish := true
6373
).enablePlugins(ScalaJSBundlerPlugin, WorkbenchPlugin)
6474

6575
lazy val commonSettings = Seq(
6676
version := Settings.version,
6777
scalaVersion := Settings.versions.scala,
6878
organization := Settings.organization,
6979
description := Settings.description,
80+
homepage := Some(url("https://github.com/kinoplan/scalajs-react-material-ui")),
81+
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
82+
publishArtifact in Test := false,
7083
webpackBundlingMode := BundlingMode.LibraryOnly(),
7184
useYarn := true,
7285
version in webpack := Settings.versions.bundler.webpack,

project/plugins.sbt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.32")
2+
13
// Unmanaged jars in client/lib are used until the LTS version of sbt-scalablytyped appears
24
//resolvers += Resolver.bintrayRepo("oyvindberg", "ScalablyTyped")
35
//
46
//addSbtPlugin("org.scalablytyped" % "sbt-scalablytyped" % "201912120707")
57

6-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.32")
8+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
79

810
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler-sjs06" % "0.16.0")
911

10-
addSbtPlugin("com.lihaoyi" % "workbench" % "0.4.1")
12+
addSbtPlugin("com.lihaoyi" % "workbench" % "0.4.1")
13+
14+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.2")

0 commit comments

Comments
 (0)