@@ -28,6 +28,11 @@ apply from: '../../gradle/docker.gradle'
28
28
29
29
project. archivesBaseName = " openwhisk-common"
30
30
31
+ scoverage {
32
+ scoverageVersion. set(" ${ gradle.scala.scoverageVersion} " )
33
+ scoverageScalaVersion. set(" ${ gradle.scala.scoverageScalaVersion} " )
34
+ }
35
+
31
36
dependencies {
32
37
api " org.scala-lang:scala-library:${ gradle.scala.version} "
33
38
@@ -88,11 +93,7 @@ dependencies {
88
93
89
94
api " io.reactivex:rxjava:1.3.8"
90
95
api " io.reactivex:rxjava-reactive-streams:1.2.1"
91
- api " com.microsoft.azure:azure-cosmosdb:2.6.2"
92
96
93
- api " com.sksamuel.elastic4s:elastic4s-http_${ gradle.scala.depVersion} :6.7.4"
94
- // for mongo
95
- api " org.mongodb.scala:mongo-scala-driver_${ gradle.scala.depVersion} :2.7.0"
96
97
97
98
api (" com.lightbend.akka:akka-stream-alpakka-s3_${ gradle.scala.depVersion} :1.1.2" ) {
98
99
exclude group : ' org.apache.httpcomponents' // Not used as alpakka uses akka-http
@@ -105,14 +106,38 @@ dependencies {
105
106
exclude group : " com.azure" , module : " azure-core-test"
106
107
}
107
108
108
- compile " io.netty:netty-buffer:${ gradle.netty.version} "
109
- compile " io.netty:netty-handler:${ gradle.netty.version} "
110
- compile " io.netty:netty-handler-proxy:${ gradle.netty.version} "
111
- compile " io.netty:netty-codec-socks:${ gradle.netty.version} "
112
- compile " io.netty:netty-codec-http:${ gradle.netty.version} "
113
- compile " io.netty:netty-codec-http2:${ gradle.netty.version} "
114
- compile " io.netty:netty-transport-native-epoll:${ gradle.netty.version} "
115
- compile " io.netty:netty-transport-native-unix-common:${ gradle.netty.version} "
109
+ api " com.microsoft.azure:azure-cosmosdb"
110
+ constraints {
111
+ api(" com.microsoft.azure:azure-cosmosdb:2.6.2" )
112
+ implementation(" com.fasterxml.jackson.core:jackson-core:2.14.2" ) {
113
+ because " cannot upgrade azure-cosmosdb to new major version to remediate vulns w/o breaking change"
114
+ }
115
+ }
116
+
117
+ api " com.sksamuel.elastic4s:elastic4s-http_${ gradle.scala.depVersion} "
118
+ constraints {
119
+ api(" com.sksamuel.elastic4s:elastic4s-http_${ gradle.scala.depVersion} :6.7.8" )
120
+ implementation(" org.elasticsearch.client:elasticsearch-rest-client:6.8.23" ) {
121
+ because " cannot upgrade elastic4s to remediate vuln without performing major version rest client upgrade"
122
+ }
123
+ }
124
+ // for mongo
125
+ api " org.mongodb.scala:mongo-scala-driver_${ gradle.scala.depVersion} "
126
+ constraints {
127
+ api(" org.mongodb.scala:mongo-scala-driver_${ gradle.scala.depVersion} :2.7.0" )
128
+ implementation(" org.mongodb:mongodb-driver-async:3.12.1" ) {
129
+ because " cannot upgrade major mongo scala driver to remediate vuln w/o code changes"
130
+ }
131
+ }
132
+
133
+ api " io.netty:netty-buffer:${ gradle.netty.version} "
134
+ api " io.netty:netty-handler:${ gradle.netty.version} "
135
+ api " io.netty:netty-handler-proxy:${ gradle.netty.version} "
136
+ api " io.netty:netty-codec-socks:${ gradle.netty.version} "
137
+ api " io.netty:netty-codec-http:${ gradle.netty.version} "
138
+ api " io.netty:netty-codec-http2:${ gradle.netty.version} "
139
+ api " io.netty:netty-transport-native-epoll:${ gradle.netty.version} "
140
+ api " io.netty:netty-transport-native-unix-common:${ gradle.netty.version} "
116
141
}
117
142
118
143
configurations {
0 commit comments