Skip to content

Commit 023490c

Browse files
author
Roman Janusz
authored
Merge pull request #426 from AVSystem/deps-update
Update Jetty, Mongo driver
2 parents 984e2ce + 950c0d8 commit 023490c

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest]
27-
scala: [2.13.8, 2.12.15]
27+
scala: [2.13.10, 2.12.17]
2828
java: [graalvm-ce-java11@21.1.0]
2929
runs-on: ${{ matrix.os }}
3030
steps:
@@ -92,7 +92,7 @@ jobs:
9292
strategy:
9393
matrix:
9494
os: [ubuntu-latest]
95-
scala: [2.13.8]
95+
scala: [2.13.10]
9696
java: [graalvm-ce-java11@21.1.0]
9797
runs-on: ${{ matrix.os }}
9898
steps:
@@ -118,22 +118,22 @@ jobs:
118118
~/Library/Caches/Coursier/v1
119119
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
120120

121-
- name: Download target directories (2.13.8)
121+
- name: Download target directories (2.13.10)
122122
uses: actions/download-artifact@v2
123123
with:
124-
name: target-${{ matrix.os }}-2.13.8-${{ matrix.java }}
124+
name: target-${{ matrix.os }}-2.13.10-${{ matrix.java }}
125125

126-
- name: Inflate target directories (2.13.8)
126+
- name: Inflate target directories (2.13.10)
127127
run: |
128128
tar xf targets.tar
129129
rm targets.tar
130130
131-
- name: Download target directories (2.12.15)
131+
- name: Download target directories (2.12.17)
132132
uses: actions/download-artifact@v2
133133
with:
134-
name: target-${{ matrix.os }}-2.12.15-${{ matrix.java }}
134+
name: target-${{ matrix.os }}-2.12.17-${{ matrix.java }}
135135

136-
- name: Inflate target directories (2.12.15)
136+
- name: Inflate target directories (2.12.17)
137137
run: |
138138
tar xf targets.tar
139139
rm targets.tar

commons-core/src/main/scala/com/avsystem/commons/misc/AnnotationOf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ object AnnotationsOf {
4444
final class HasAnnotation[A, T] private()
4545
object HasAnnotation {
4646
private[this] val reusable = new HasAnnotation
47-
def create[A, T]: HasAnnotation[A, T] = reusable.asInstanceOf
47+
def create[A, T]: HasAnnotation[A, T] = reusable.asInstanceOf[HasAnnotation[A, T]]
4848

4949
implicit def materialize[A, T]: HasAnnotation[A, T] = macro macros.misc.MiscMacros.hasAnnotation[A, T]
5050
}

commons-core/src/test/scala/com/avsystem/commons/misc/OptRefTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class OptRefTest extends AnyFunSuite {
3131
}
3232

3333
test("zip") {
34-
assert(OptRef(3).zip(OptRef(2)) == OptRef((3, 2)))
35-
assert(OptRef.Empty.zip(OptRef(2)) == OptRef.Empty)
36-
assert(OptRef(3).zip(OptRef.Empty) == OptRef.Empty)
34+
assert(OptRef[JInteger](3).zip(OptRef[JInteger](2)) == OptRef((3, 2)))
35+
assert(OptRef.Empty.zip(OptRef[JInteger](2)) == OptRef.Empty)
36+
assert(OptRef[JInteger](3).zip(OptRef.Empty) == OptRef.Empty)
3737
}
3838
}

commons-mongo/jvm/src/test/scala/com/avsystem/commons/mongo/core/ops/SortingTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class SortingTest extends AnyFunSuite {
2828
}
2929

3030
test("bsonRef tests") {
31-
val someRef = BsonRef(someKey, GenCodec.StringCodec, null)
32-
val otherRef = BsonRef(otherKey, GenCodec.IntCodec, null)
31+
val someRef = BsonRef[Any, String](someKey, GenCodec.StringCodec, null)
32+
val otherRef = BsonRef[Any, Int](otherKey, GenCodec.IntCodec, null)
3333

3434
assert(someRef.ascending === Sorts.ascending(someKey))
3535
assert(someRef.descending === Sorts.descending(someKey))

commons-redis/src/main/scala/com/avsystem/commons/redis/Hash.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ object Hash {
4646
)
4747

4848
def slot(key: ByteString): Int = {
49-
val tagStart = key.indexOf('{')
49+
val tagStart = key.indexOf('{'.toByte) // .toByte to make both Scala 2.12 and 2.13 compiler happy
5050
val bytes = if (tagStart >= 0) {
51-
val tagEnd = key.indexOf('}', tagStart + 1)
51+
val tagEnd = key.indexOf('}'.toByte, tagStart + 1)
5252
if (tagEnd > tagStart + 1)
5353
key.iterator.slice(tagStart + 1, tagEnd)
5454
else key.iterator

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ object Build extends BuildDef {
4141
val scalatestVersion = "3.2.12"
4242
val scalatestplusScalacheckVersion = "3.2.12.0"
4343
val scalacheckVersion = "1.16.0"
44-
val jettyVersion = "9.4.48.v20220622"
45-
val mongoVersion = "4.6.1"
44+
val jettyVersion = "9.4.49.v20220914"
45+
val mongoVersion = "4.7.2"
4646
val springVersion = "4.3.26.RELEASE"
4747
val typesafeConfigVersion = "1.4.2"
4848
val commonsIoVersion = "1.3.2" // test only
49-
val scalaLoggingVersion = "3.9.4"
49+
val scalaLoggingVersion = "3.9.5"
5050
val akkaVersion = "2.6.19"
5151
val monixVersion = "3.4.1"
5252
val monixBioVersion = "1.2.0"
@@ -83,7 +83,7 @@ object Build extends BuildDef {
8383
Developer("ghik", "Roman Janusz", "r.janusz@avsystem.com", url("https://github.com/ghik")),
8484
),
8585

86-
crossScalaVersions := Seq("2.13.8", "2.12.15"),
86+
crossScalaVersions := Seq("2.13.10", "2.12.17"),
8787
scalaVersion := crossScalaVersions.value.head,
8888
compileOrder := CompileOrder.Mixed,
8989

0 commit comments

Comments
 (0)