Skip to content

Commit

Permalink
Merge pull request #17 from sparsetech/feat/update-deps-2
Browse files Browse the repository at this point in the history
Build: Update dependencies
  • Loading branch information
tindzk committed Sep 26, 2020
2 parents 12aabec + 602e300 commit 8f470c4
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 27 deletions.
4 changes: 3 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ kind: pipeline
name: default
steps:
- name: test
image: tindzk/seed:0.1.5
image: tindzk/seed:0.1.7
commands:
# Patch Bloop version to support Scala.js 1.0
- apk add --no-cache curl && curl -L https://github.com/scalacenter/bloop/releases/download/v1.4.0-RC1/install.py | python - -d /usr/bin/ -v 1.4.0-RC1-229-b7c15aa9 || true
- blp-server &
- seed --build=build211.toml bloop
- sleep 5 # Synchronise analysis.bin files, otherwise rm might fail
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: scala
scala:
- 2.11.12
- 2.12.10
- 2.13.1
- 2.13.3
jdk:
- openjdk8

Expand Down
9 changes: 5 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.10"
val Scala2_13 = "2.13.1"
val ScalaTest = "3.0.8"
val Scala2_13 = "2.13.3"
val ScalaTest = "3.2.2"

val SharedSettings = Seq(
name := "translit-scala",
Expand Down Expand Up @@ -44,7 +44,8 @@ lazy val translit = crossProject.in(file("."))
autoAPIMappings := true,
apiMappings += (scalaInstance.value.libraryJar -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")),
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % ScalaTest % "test"
"org.scalatest" %%% "scalatest" % ScalaTest % "test",
"org.scalatest" %%% "scalatest-funsuite" % ScalaTest % "test"
)
)
.jsSettings(
Expand All @@ -53,7 +54,7 @@ lazy val translit = crossProject.in(file("."))
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.github.pathikrit" %%% "better-files" % "3.8.0" % "test",
"com.github.pathikrit" %%% "better-files" % "3.9.1" % "test",
"org.scalaj" %%% "scalaj-http" % "2.4.2" % "test"
)
)
Expand Down
12 changes: 6 additions & 6 deletions build211.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
scalaVersion = "2.11.12"
scalaJsVersion = "0.6.28"
scalaNativeVersion = "0.3.9"
scalaJsVersion = "1.0.1"
scalaNativeVersion = "0.4.0-M2"
scalaOptions = [
"-encoding", "UTF-8",
"-unchecked",
Expand Down Expand Up @@ -29,17 +29,17 @@ targets = ["js", "jvm", "native"]
[module.translit.test.jvm]
sources = ["jvm/src/test/scala"]
scalaDeps = [
["org.scalatest", "scalatest", "3.0.8"],
["com.github.pathikrit", "better-files", "3.8.0"],
["org.scalatest", "scalatest", "3.2.2"],
["com.github.pathikrit", "better-files", "3.9.1"],
["org.scalaj", "scalaj-http", "2.4.2"]
]

[module.translit.test.js]
scalaDeps = [
["org.scalatest", "scalatest", "3.0.8"]
["org.scalatest", "scalatest", "3.1.1"]
]

[module.translit.test.native]
scalaDeps = [
["org.scalatest", "scalatest", "3.2.0-SNAP10"]
["org.scalatest", "scalatest", "3.2.2"]
]
8 changes: 4 additions & 4 deletions build212.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
scalaVersion = "2.12.10"
scalaJsVersion = "0.6.28"
scalaVersion = "2.12.12"
scalaJsVersion = "1.0.1"
scalaOptions = [
"-encoding", "UTF-8",
"-unchecked",
Expand All @@ -25,12 +25,12 @@ root = "jvm"
sources = ["shared/src/test/scala"]
targets = ["js", "jvm"]
scalaDeps = [
["org.scalatest", "scalatest", "3.0.8"]
["org.scalatest", "scalatest", "3.1.1"]
]

[module.translit.test.jvm]
sources = ["jvm/src/test/scala"]
scalaDeps = [
["com.github.pathikrit", "better-files", "3.8.0"],
["com.github.pathikrit", "better-files", "3.9.1"],
["org.scalaj", "scalaj-http", "2.4.2"]
]
6 changes: 3 additions & 3 deletions build213.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
scalaVersion = "2.13.1"
scalaJsVersion = "0.6.28"
scalaJsVersion = "1.0.1"
scalaOptions = [
"-encoding", "UTF-8",
"-unchecked",
Expand All @@ -25,12 +25,12 @@ root = "jvm"
sources = ["shared/src/test/scala"]
targets = ["js", "jvm"]
scalaDeps = [
["org.scalatest", "scalatest", "3.0.8"]
["org.scalatest", "scalatest", "3.1.1"]
]

[module.translit.test.jvm]
sources = ["jvm/src/test/scala"]
scalaDeps = [
["com.github.pathikrit", "better-files", "3.8.0"],
["com.github.pathikrit", "better-files", "3.9.1"],
["org.scalaj", "scalaj-http", "2.4.2"]
]
4 changes: 2 additions & 2 deletions jvm/src/test/scala/translit/CorpusSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package translit
import java.nio.charset.Charset

import better.files._
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite
import scalaj.http.Http

class CorpusSpec extends FunSuite {
class CorpusSpec extends AnyFunSuite {
def getDump(name: String): File = {
val file = File(s"/tmp/$name")
if (file.exists) file
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.3.3
sbt.version = 1.3.13
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
logLevel := Level.Warn

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.29")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.2.0")
4 changes: 2 additions & 2 deletions shared/src/test/scala/translit/RussianSpec.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package translit

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class RussianSpec extends FunSuite {
class RussianSpec extends AnyFunSuite {
val words = List(
"Андрей" -> "Andrej",
"Борис" -> "Boris",
Expand Down
4 changes: 2 additions & 2 deletions shared/src/test/scala/translit/UkrainianSpec.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package translit

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class UkrainianSpec extends FunSuite {
class UkrainianSpec extends AnyFunSuite {
val words = List(
"Алушта" -> "Alushta",
"Андрій" -> "Andrij",
Expand Down

0 comments on commit 8f470c4

Please sign in to comment.