Skip to content

Commit 3f14b9f

Browse files
authored
Merge pull request #24 from UdashFramework/2.13
Add 2.13 support, drop 2.11
2 parents 18c8d7c + 58cc6f0 commit 3f14b9f

File tree

9 files changed

+36
-45
lines changed

9 files changed

+36
-45
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: scala
22
dist: trusty
33

4-
jdk: oraclejdk8
4+
jdk: openjdk11
5+
56
scala:
6-
- 2.11.12
7-
- 2.12.7
7+
- 2.13.1
88

99
before_script:
1010
- "export DISPLAY=:99.0"
@@ -22,6 +22,5 @@ before_script:
2222
- export PATH=$PWD/selenium-bin:$PATH
2323

2424
script:
25-
- sbt ++$TRAVIS_SCALA_VERSION test
26-
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
27-
- cd example && sbt ++$TRAVIS_SCALA_VERSION compile jquery-global-demo/fullOptJS jquery-bundler-demo/compileStatics
25+
- sbt +test +publishLocal
26+
- cd example && sbt compile jquery-global-demo/fullOptJS jquery-bundler-demo/compileStatics

build.sbt

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import org.openqa.selenium.chrome.ChromeOptions
1+
22

33
name := "udash-jquery"
44

55
inThisBuild(Seq(
6-
version := "3.0.0",
6+
version := "3.0.1",
77
organization := "io.udash",
88
))
99

1010
val commonSettings = Seq(
11-
scalaVersion := "2.12.7",
12-
crossScalaVersions := Seq("2.11.12", "2.12.7"),
11+
scalaVersion := "2.13.1",
12+
crossScalaVersions := Seq("2.12.10", "2.13.1"),
1313
scalacOptions ++= Seq(
1414
"-feature",
1515
"-deprecation",
@@ -19,18 +19,13 @@ val commonSettings = Seq(
1919
"-language:dynamics",
2020
"-language:postfixOps",
2121
"-language:experimental.macros",
22-
"-Xfuture",
2322
"-Xfatal-warnings",
24-
"-Xlint:_"
23+
"-Xlint:_",
24+
"-Ywarn-unused:_,-explicits,-implicits",
25+
"-Ybackend-parallelism", "4",
26+
"-Ycache-plugin-class-loader:last-modified",
27+
"-Ycache-macro-class-loader:last-modified",
2528
),
26-
scalacOptions ++= {
27-
if (scalaBinaryVersion.value == "2.12") Seq(
28-
"-Ywarn-unused:_,-explicits,-implicits",
29-
"-Ybackend-parallelism", "4",
30-
"-Ycache-plugin-class-loader:last-modified",
31-
"-Ycache-macro-class-loader:last-modified"
32-
) else Seq.empty
33-
}
3429
)
3530

3631
val commonJSSettings = Seq(
@@ -55,9 +50,9 @@ lazy val root = project.in(file("."))
5550
commonJSSettings,
5651

5752
libraryDependencies ++= Seq(
58-
"org.scala-js" %%% "scalajs-dom" % "0.9.6",
59-
"org.scalatest" %%% "scalatest" % "3.0.5" % Test,
60-
"com.lihaoyi" %%% "scalatags" % "0.6.7" % Test
53+
"org.scala-js" %%% "scalajs-dom" % "0.9.7",
54+
"org.scalatest" %%% "scalatest" % "3.0.8" % Test,
55+
"com.lihaoyi" %%% "scalatags" % "0.7.0" % Test
6156
),
6257

6358
Compile / npmDependencies += "jquery" -> "3.3.1",

example/build.sbt

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name := "jquery-demo"
22

33
inThisBuild(Seq(
4-
version := "3.0.0",
4+
version := "3.0.1",
55
organization := "io.udash",
66
))
77

88
val commonSettings = Seq(
9-
scalaVersion := "2.12.7",
10-
crossScalaVersions := Seq("2.11.12", "2.12.7"),
9+
scalaVersion := "2.12.10",
10+
crossScalaVersions := Seq("2.12.10"), //todo 2.13
1111
scalacOptions ++= Seq(
1212
"-feature",
1313
"-deprecation",
@@ -16,18 +16,13 @@ val commonSettings = Seq(
1616
"-language:existentials",
1717
"-language:dynamics",
1818
"-language:postfixOps",
19-
"-Xfuture",
2019
"-Xfatal-warnings",
2120
"-Xlint:_",
21+
"-Ywarn-unused:_,-explicits,-implicits",
22+
"-Ybackend-parallelism", "4",
23+
"-Ycache-plugin-class-loader:last-modified",
24+
"-Ycache-macro-class-loader:last-modified"
2225
),
23-
scalacOptions ++= {
24-
if (scalaBinaryVersion.value == "2.12") Seq(
25-
"-Ywarn-unused:_,-explicits,-implicits",
26-
"-Ybackend-parallelism", "4",
27-
"-Ycache-plugin-class-loader:last-modified",
28-
"-Ycache-macro-class-loader:last-modified"
29-
) else Seq.empty
30-
},
3126

3227
libraryDependencies ++= Dependencies.deps.value
3328
)

example/project/Dependencies.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
33
import sbt._
44

55
object Dependencies {
6-
val udashCoreVersion = "0.6.1"
7-
val udashJQueryVersion = "3.0.0"
6+
val udashCoreVersion = "0.8.1"
7+
val udashJQueryVersion = "3.0.1"
88

99
val deps = Def.setting(Seq[ModuleID](
10-
"io.udash" %%% "udash-core-frontend" % udashCoreVersion,
10+
"io.udash" %%% "udash-core" % udashCoreVersion,
1111
"io.udash" %%% "udash-jquery" % udashJQueryVersion
1212
))
1313

example/project/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sbt.version = 1.2.6
1+
# suppress inspection "UnusedProperty"
2+
sbt.version=1.3.2

example/project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
logLevel := Level.Warn
22

3-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.25")
4-
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.14.0")
3+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.29")
4+
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.15.0-0.6")

project/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sbt.version = 1.2.6
1+
# suppress inspection "UnusedProperty"
2+
sbt.version=1.3.2

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ logLevel := Level.Warn
22

33
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.3.0"
44

5-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.25")
6-
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.14.0")
5+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.29")
6+
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.15.0-0.6")

src/main/scala/io/udash/wrappers/jquery/JQuery.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.udash.wrappers.jquery
22

3-
import org.scalajs.dom._
3+
import org.scalajs.dom.Element
44

55
import scala.collection.mutable
66
import scala.scalajs.js

0 commit comments

Comments
 (0)