-
-
Notifications
You must be signed in to change notification settings - Fork 286
/
Copy pathDependencies.scala
80 lines (68 loc) · 3.39 KB
/
Dependencies.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import sbt._
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
import Keys._
object Dependencies {
object versions {
val grpc = "1.68.3"
val protobuf = "4.28.2"
val silencer = "1.7.19"
val collectionCompat = "2.12.0"
val coursier = "2.1.24"
val protocGen = "0.9.8"
val protobufRuntimeScala = "0.8.16"
val commonsCodec = "1.17.2"
// For testing
val annotationApi = "1.3.2"
val cats = "2.6.1"
val mockito = "5.15.2"
val munit = "1.0.0"
val scalaTest = "3.2.19"
val scalaTestPlusMockito = "3.1.0.0"
val scalaTestPlusScalaCheck = "3.2.18.0"
val utest = "0.7.10"
}
val Scala212 = "2.12.19"
val Scala213 = "2.13.16"
val Scala3 = "3.3.3"
val silencer = Seq(
sbt.compilerPlugin(
"com.github.ghik" % "silencer-plugin" % versions.silencer cross CrossVersion.full
),
"com.github.ghik" % "silencer-lib" % versions.silencer % Provided cross CrossVersion.full
)
val protobufJava = "com.google.protobuf" % "protobuf-java" % versions.protobuf
val scalaCollectionCompat = Def.setting {
"org.scala-lang.modules" %%% "scala-collection-compat" % versions.collectionCompat
}
val protobufRuntimeScala = Def.setting {
"com.thesamet.scalapb" %%% "protobuf-runtime-scala" % versions.protobufRuntimeScala
}
private val exclRule =
ExclusionRule(organization = "org.scala-lang.modules") // Exclude scala-xml cross-version
val coursier = "io.get-coursier" %% "coursier" % versions.coursier
val protocGen = ("com.thesamet.scalapb" %% "protoc-gen" % versions.protocGen).excludeAll(exclRule)
val protocCacheCoursier =
("com.thesamet.scalapb" %% "protoc-cache-coursier" % versions.protocGen).excludeAll(exclRule)
val protobufJavaUtil = "com.google.protobuf" % "protobuf-java-util" % versions.protobuf
// grpc
val grpcStub = "io.grpc" % "grpc-stub" % versions.grpc
val grpcProtobuf = "io.grpc" % "grpc-protobuf" % versions.grpc
val grpcNetty = "io.grpc" % "grpc-netty" % versions.grpc
val grpcServices = "io.grpc" % "grpc-services" % versions.grpc
val grpcProtocGen = "io.grpc" % "protoc-gen-grpc-java" % versions.grpc
val grpcInprocess = "io.grpc" % "grpc-inprocess" % versions.grpc
// testing
val scalaTest = Def.setting { "org.scalatest" %%% "scalatest" % versions.scalaTest }
val scalaTestPlusScalaCheck = Def.setting {
"org.scalatestplus" %%% "scalacheck-1-17" % versions.scalaTestPlusScalaCheck
}
val scalaTestPlusMockito = "org.scalatestplus" %% "mockito-1-10" % versions.scalaTestPlusMockito
val utest = Def.setting { "com.lihaoyi" %%% "utest" % versions.utest }
val munit = Def.setting { "org.scalameta" %%% "munit" % versions.munit }
val munitScalaCheck = Def.setting { "org.scalameta" %%% "munit-scalacheck" % versions.munit }
val mockitoCore = "org.mockito" % "mockito-core" % versions.mockito
val commonsCodec = "commons-codec" % "commons-codec" % versions.commonsCodec
val cats = "org.typelevel" %% "cats-core" % versions.cats
val annotationApi =
"javax.annotation" % "javax.annotation-api" % versions.annotationApi // needed for grpc-java on JDK9
}