Skip to content

Commit e98ce5e

Browse files
committed
Merge branch 'master' into release
2 parents 7e2253b + de63e44 commit e98ce5e

File tree

10 files changed

+51
-27
lines changed

10 files changed

+51
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ project/target
2424
.worksheet/
2525
*.sc
2626
.externalToolBuilders/
27+
/_local_/

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ sudo: false
22

33
language: scala
44
scala:
5-
- 2.12.9
6-
- 2.13.0
5+
- 2.12.10
6+
- 2.13.1
77

88
dist: xenial
99
services:
1010
- xvfb
1111

1212
jdk:
13-
- oraclejdk11
14-
- oraclejdk12
13+
- oraclejdk11
14+
- oraclejdk12
15+
- oraclejdk13
1516

1617
install: true
1718

build.sbt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ import scala.xml.{Node => XmlNode, NodeSeq => XmlNodeSeq, _}
1111
// JAR_BUILT_BY - Name to be added to Jar metadata field "Built-By" (defaults to System.getProperty("user.name")
1212
//
1313

14-
val projectVersion = "0.3.2"
15-
val versionTagDir = if (projectVersion.endsWith("SNAPSHOT")) "master" else "v." + projectVersion
16-
val _scalaVersions = Seq("2.13.0", "2.12.9")
17-
val _scalaVersion = _scalaVersions.head
14+
val projectVersion = "0.3.2.6-SNAPSHOT"
15+
val versionTagDir = if (projectVersion.endsWith("SNAPSHOT")) "master" else "v." + projectVersion
16+
val _scalaVersions = Seq("2.13.1", "2.12.10")
17+
val _scalaVersion = _scalaVersions.head
18+
val _scalaFXVersion = "12.0.2"
1819

1920
version := projectVersion
2021
crossScalaVersions := _scalaVersions
@@ -31,8 +32,11 @@ lazy val OSName = System.getProperty("os.name") match {
3132
}
3233

3334
lazy val JavaFXModuleNames = Seq("base", "controls", "fxml", "graphics", "media", "swing", "web")
35+
lazy val JavaFXModuleLibsProvided: Seq[ModuleID] =
36+
JavaFXModuleNames.map(m => "org.openjfx" % s"javafx-$m" % _scalaFXVersion % "provided" classifier OSName)
3437
lazy val JavaFXModuleLibs: Seq[ModuleID] =
35-
JavaFXModuleNames.map(m => "org.openjfx" % s"javafx-$m" % "12.0.2" % "provided" classifier OSName)
38+
JavaFXModuleNames.map(m => "org.openjfx" % s"javafx-$m" % _scalaFXVersion classifier OSName)
39+
3640

3741
def isScala2_13plus(scalaVersion: String): Boolean = {
3842
CrossVersion.partialVersion(scalaVersion) match {
@@ -68,11 +72,12 @@ lazy val scalaFXExtrasDemos = (project in file("scalafx-extras-demos")).settings
6872
"-Djavafx.verbose"
6973
),
7074
scalacOptions ++= Seq("-deprecation"),
75+
libraryDependencies ++= JavaFXModuleLibs,
7176
publishArtifact := false,
7277
libraryDependencies ++= Seq(
7378
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
7479
"ch.qos.logback" % "logback-classic" % "1.2.3"
75-
)
80+
),
7681
).dependsOn(scalaFXExtras % "compile;test->test")
7782

7883
// Resolvers
@@ -89,7 +94,7 @@ lazy val scalaFXExtrasSettings = Seq(
8994
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8", "-feature"),
9095
scalacOptions in(Compile, doc) ++= Opts.doc.title("ScalaFX Extras API"),
9196
scalacOptions in(Compile, doc) ++= Opts.doc.version(projectVersion),
92-
scalacOptions in(Compile, doc) += s"-doc-external-doc:${scalaInstance.value.libraryJar}#http://www.scala-lang.org/api/${scalaVersion.value}/",
97+
scalacOptions in(Compile, doc) += s"-doc-external-doc:${scalaInstance.value.libraryJars.head}#http://www.scala-lang.org/api/${scalaVersion.value}/",
9398
scalacOptions in(Compile, doc) ++= Seq("-doc-footer", s"ScalaFX Extras API v.$projectVersion"),
9499
// If using Scala 2.13 or better, enable macro processing through compiler option
95100
scalacOptions += (if (isScala2_13plus(scalaVersion.value)) "-Ymacro-annotations" else ""),
@@ -106,12 +111,12 @@ lazy val scalaFXExtrasSettings = Seq(
106111
// "-source", "1.8",
107112
"-Xlint:deprecation"),
108113
libraryDependencies ++= Seq(
109-
"com.beachape" %% "enumeratum" % "1.5.13",
114+
"com.beachape" %% "enumeratum" % "1.5.15",
110115
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
111116
"org.scalafx" %% "scalafx" % "12.0.2-R18",
112117
"org.scalafx" %% "scalafxml-core-sfx8" % "0.5",
113-
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
114-
) ++ JavaFXModuleLibs,
118+
"org.scalatest" %% "scalatest" % "3.1.0" % "test"
119+
) ++ JavaFXModuleLibsProvided,
115120
// Use `pomPostProcess` to remove dependencies marked as "provided" from publishing in POM
116121
// This is to avoid dependency on wrong OS version JavaFX libraries
117122
// See also [https://stackoverflow.com/questions/27835740/sbt-exclude-certain-dependency-only-during-publish]

notes/0.3.3.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### ScalaFX-Extras Release v.0.3.3
2+
3+
Bug fix release:
4+
5+
* [Issue #7][7] BusyWorker: scala.MatchError
6+
7+
8+
To post questions please use [ScalaFX Users Group][scalafx-users] of [StackOverflow ScalaFX][scalafx-overflow]
9+
10+
[scalafx-users]: https://groups.google.com/forum/#!forum/scalafx-users
11+
[scalafx-overflow]: https://stackoverflow.com/questions/tagged/scalafx
12+
13+
[7]: https://github.com/scalafx/scalafx-extras/issues/7
14+

project/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011-2019, ScalaFX Project
2+
# Copyright (c) 2011-2020, ScalaFX Project
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without
@@ -24,5 +24,5 @@
2424
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2525
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
#
27-
sbt.version=1.3.0
27+
sbt.version=1.3.8
2828

project/sbt-sonatype.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// [https://github.com/xerial/sbt-sonatype]
2-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.7")
3-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
2+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1")
3+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")

scalafx-extras-demos/src/main/scala/org/scalafx/extras/mvcfx/stopwatch/StopWatchApp.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011-2018, ScalaFX Project
2+
* Copyright (c) 2011-2020, ScalaFX Project
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -43,9 +43,9 @@ import scala.language.implicitConversions
4343
object StopWatchApp extends JFXApp {
4444

4545
stage = new PrimaryStage {
46+
icons += new Image("/org/scalafx/extras/sfx.png")
47+
title = "StopWatch"
4648
scene = new Scene {
47-
icons += new Image("/org/scalafx/extras/sfx.png")
48-
title = "StopWatch"
4949
root = new BorderPane {
5050
center = new StopWatch().view
5151
}

scalafx-extras/src/main/scala/org/scalafx/extras/BusyWorker.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011-2019, ScalaFX Project
2+
* Copyright (c) 2011-2020, ScalaFX Project
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -460,6 +460,9 @@ class BusyWorker private(val title: String,
460460
case NonFatal(t) =>
461461
val message = s"Unexpected error while performing a UI task: '$name'. " // + Option(t.getMessage).getOrElse("")
462462
showException(title, message, t)
463+
case t =>
464+
// Propagate fatal errors
465+
throw t
463466
}
464467
resetProgress()
465468
}

scalafx-extras/src/main/scala/org/scalafx/extras/image/ImageDisplay.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011-2019, ScalaFX Project
2+
* Copyright (c) 2011-2020, ScalaFX Project
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

scalafx-extras/src/main/scala/org/scalafx/extras/pong/Pong.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011-2019, ScalaFX Project
2+
* Copyright (c) 2011-2020, ScalaFX Project
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -53,7 +53,7 @@ class Pong {
5353
private val startButtonVisible = BooleanProperty(true)
5454

5555
private val keyFrame = KeyFrame(10 ms, onFinished = {
56-
event: ActionEvent =>
56+
_: ActionEvent =>
5757
checkForCollision()
5858
val horzPixels = if (ball.movingRight) 1 else -1
5959
val vertPixels = if (ball.movingDown) 1 else -1
@@ -71,7 +71,7 @@ class Pong {
7171
text = "Start!"
7272
visible <== startButtonVisible
7373
onAction = {
74-
event: ActionEvent =>
74+
_: ActionEvent =>
7575
startButtonVisible() = false
7676
pongAnimation.playFromStart()
7777
pongComponents.requestFocus()
@@ -138,7 +138,7 @@ class Pong {
138138
}
139139
}
140140

141-
private val timer = AnimationTimer { t =>
141+
private val timer = AnimationTimer { _ =>
142142
val paddleSpeed = 3
143143

144144
def updatePaddle(paddle: Paddle): Unit = {

0 commit comments

Comments
 (0)