Skip to content

Commit 685471f

Browse files
committed
Bump version, update release.yml
1 parent e3f66f2 commit 685471f

File tree

7 files changed

+36
-29
lines changed

7 files changed

+36
-29
lines changed

.github/.jvmopts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-Xss4M
2+
-Xms2G
3+
-Xmx8G
4+
-XX:ReservedCodeCacheSize=512M
5+
-XX:MaxMetaspaceSize=8G
6+
-XX:+CMSClassUnloadingEnabled
7+
-XX:+UseG1GC

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ jobs:
77
publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v2.3.3
1111
- uses: olafurpg/setup-scala@v10
1212
- uses: actions/setup-node@v1
13-
- uses: olafurpg/setup-gpg@v2
13+
- uses: olafurpg/setup-gpg@v3
1414
- name: Publish
15-
run: DEMO_ENABLED=0 sbt -mem 4096 ci-release
15+
run: DEMO_ENABLED=0 sbt -jvm-opts .github/.jvmopts clean ci-release
1616
env:
1717
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
1818
PGP_SECRET: ${{ secrets.PGP_SECRET }}
1919
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
2020
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
2121
- name: Publish 0.6
22-
run: SCALAJS_VERSION=0.6.33 DEMO_ENABLED=0 sbt -mem 4096 ci-release
22+
run: SCALAJS_VERSION=0.6.33 DEMO_ENABLED=0 sbt -jvm-opts .github/.jvmopts clean ci-release
2323
env:
2424
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
2525
PGP_SECRET: ${{ secrets.PGP_SECRET }}
2626
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
27-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
27+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changes
22

3+
## 0.1.0
4+
5+
* Add cross-build for ScalaJS 0.6.x/1.x.x and Scala 2.12.x/2.13.x
6+
* Bump scalajs-react to 1.7.5 and react to 16.13.1
7+
* Move scalajs-react-bridge to project utils/bridge
8+
* Bump other dependencies
9+
310
## 0.0.1
411

512
* Initial version.

build.sbt

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
lazy val root = if (Settings.isDemoEnabled)
2-
project.in(file(".")).aggregate(core, icons, lab, bridge, demo).configure(Settings.rootProject)
3-
else
4-
project.in(file(".")).aggregate(core, icons, lab, bridge).configure(Settings.rootProject)
1+
lazy val root =
2+
if (Settings.isDemoEnabled)
3+
project.in(file(".")).aggregate(core, icons, lab, bridge, demo).configure(Settings.rootProject)
4+
else
5+
project.in(file(".")).aggregate(core, icons, lab, bridge).configure(Settings.rootProject)
56

67
inThisBuild(
78
List(
9+
organization := Settings.organization,
810
homepage := Some(url("https://github.com/kinoplan/scalajs-react-material-ui")),
911
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
1012
developers := List(
@@ -37,9 +39,7 @@ lazy val core = (project in file("core")).dependsOn(bridge)
3739
(sourceManaged in Compile).value / "io" / "kinoplan" / "scalajs" / "react" / "material" / "ui" / "core" / "colors",
3840
(npmInstallDependencies in Compile).value
3941
),
40-
sourceGenerators in Compile += muiColorsGenerator.taskValue,
41-
sources in(Compile, doc) := Seq.empty,
42-
publishArtifact in(Compile, packageDoc) := false,
42+
sourceGenerators in Compile += muiColorsGenerator.taskValue
4343
).enablePlugins(ScalaJSBundlerPlugin)
4444

4545
lazy val muiIconsGenerator = taskKey[Seq[File]]("mui-icons-generator")
@@ -55,9 +55,7 @@ lazy val icons = (project in file("icons")).dependsOn(bridge)
5555
(sourceManaged in Compile).value / "io" / "kinoplan" / "scalajs" / "react" / "material" / "ui" / "icons",
5656
(npmInstallDependencies in Compile).value
5757
),
58-
sourceGenerators in Compile += muiIconsGenerator.taskValue,
59-
sources in(Compile, doc) := Seq.empty,
60-
publishArtifact in(Compile, packageDoc) := false,
58+
sourceGenerators in Compile += muiIconsGenerator.taskValue
6159
).enablePlugins(ScalaJSBundlerPlugin)
6260

6361
lazy val lab = (project in file("lab")).dependsOn(bridge)
@@ -66,9 +64,7 @@ lazy val lab = (project in file("lab")).dependsOn(bridge)
6664
scalaJSUseMainModuleInitializer := false,
6765
npmDependencies in Compile ++= Settings.npmDependenciesLab.value,
6866
npmResolutions in Compile ++= (npmDependencies in Compile).value.toMap,
69-
libraryDependencies ++= Settings.scalajsDependenciesLib.value,
70-
sources in(Compile, doc) := Seq.empty,
71-
publishArtifact in(Compile, packageDoc) := false,
67+
libraryDependencies ++= Settings.scalajsDependenciesLib.value
7268
).enablePlugins(ScalaJSBundlerPlugin)
7369

7470
lazy val demo = (project in file("demo")).dependsOn(core, lab, bridge)
@@ -97,14 +93,9 @@ lazy val bridge = (project in file("utils/bridge")).settings(commonSettings).set
9793
).enablePlugins(ScalaJSBundlerPlugin, BridgeGeneratorPlugin)
9894

9995
lazy val commonSettings = Seq(
100-
version := Settings.version,
10196
crossScalaVersions := Seq("2.12.11", "2.13.3"),
10297
scalaVersion := crossScalaVersions.value.last,
103-
organization := Settings.organization,
10498
description := Settings.description,
105-
homepage := Some(url("https://github.com/kinoplan/scalajs-react-material-ui")),
106-
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
107-
publishArtifact in Test := false,
10899
webpackBundlingMode := BundlingMode.LibraryOnly(),
109100
useYarn := true,
110101
version in webpack := Settings.versions.bundler.webpack,

project/Settings.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import sbt.Keys._
22
import sbt._
33

44
object Settings {
5-
val version = "0.1.0"
6-
75
val organization = "io.kinoplan"
86

97
val description = "scalajs-react facade for material-ui"
@@ -94,7 +92,10 @@ object Settings {
9492
)
9593

9694
lazy val rootProject: Project => Project = _.settings(
97-
name := "scalajs-react-material-ui",
98-
skip in publish := true
95+
name := "scalajs-react-material-ui",
96+
skip in publish := true,
97+
skip in publishLocal := true,
98+
skip in publishArtifact := true,
99+
Keys.`package` := file("")
99100
)
100101
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.4.1
1+
sbt.version = 1.4.2

project/plugins.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.1.1")
22

3+
resolvers += Resolver.sonatypeRepo("public")
34
resolvers += Resolver.bintrayRepo("oyvindberg", "converter")
45

56
addSbtPlugin("org.scalablytyped.converter" % s"sbt-converter${if (scalaJSVersion.startsWith("0.6")) "06" else ""}" % "1.0.0-beta28")
@@ -10,4 +11,4 @@ addSbtPlugin("ch.epfl.scala" % s"sbt-scalajs-bundler${if (scalaJSVersion.startsW
1011

1112
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.14")
1213

13-
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
14+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.4")

0 commit comments

Comments
 (0)