Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Release 0.9.2 #166

Merged
merged 2 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.9.2 (2022-08-23)
-------------------------
Bump jackson libraries to 2.12.7 (#166)

Version 0.9.1 (2022-03-07)
--------------------------
Bump snowflake-jdbc to 3.13.15 (#162)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ limitations under the License.
[travis]: https://travis-ci.org/snowplow/snowplowsnowflaketransformer
[travis-image]: https://travis-ci.org/snowplow/snowplowsnowflaketransformer.png?branch=master

[release-image]: http://img.shields.io/badge/release-0.9.1-blue.svg?style=flat
[release-image]: http://img.shields.io/badge/release-0.9.2-blue.svg?style=flat
[releases]: https://github.com/snowplow/snowplowsnowflaketransformer/releases

[sbt]: https://www.scala-sbt.org/
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ lazy val transformer = project.in(file("transformer"))

lazy val commonDependencies = Seq(
Dependencies.jacksonCbor,
Dependencies.jacksonDatabind,
Dependencies.jacksonScala,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the effect of adding jackson-module-scala to the deps? Given that jackson is a Java lib

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this, it provides serializers and deserializers for Scala entities like case class, Map, Option etc.

It was brought implicitly previously. When I've bumped jackson databind library version to 2.12.7, it threw error due to incompatibility with jackson scala library. Therefore, I've included it too explicitly and bumped its version.

// Scala
Dependencies.analyticsSdk,
Dependencies.fs2,
Expand Down
37 changes: 18 additions & 19 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object Dependencies {
val badRows = "2.1.1"
val schemaDdl = "0.13.0"
val circe = "0.14.1"
val jacksonCbor = "2.11.4" // Override provided version to fix security vulnerability
val jackson = "2.12.7" // Override provided version to fix security vulnerability
// Scala (test only)
val specs2 = "4.12.0"
val scalacheck = "1.15.4"
Expand All @@ -45,26 +45,25 @@ object Dependencies {
val dynamodb = "com.amazonaws" % "aws-java-sdk-dynamodb" % V.aws
val ssm = "com.amazonaws" % "aws-java-sdk-ssm" % V.aws
val sts = "com.amazonaws" % "aws-java-sdk-sts" % V.aws
val jacksonCbor = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % V.jacksonCbor excludeAll(
// Prevent upgrading jackson core libs to incompatible version
ExclusionRule(organization="com.fasterxml.jackson.core")
)
val jacksonCbor = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % V.jackson
val jacksonDatabind = "com.fasterxml.jackson.core" % "jackson-databind" % V.jackson

// Scala
val spark = "org.apache.spark" %% "spark-core" % V.spark % Provided
val sparkSql = "org.apache.spark" %% "spark-sql" % V.spark % Provided
val fs2 = "co.fs2" %% "fs2-core" % V.fs2
val decline = "com.monovore" %% "decline" % V.decline
val analyticsSdk = "com.snowplowanalytics" %% "snowplow-scala-analytics-sdk" % V.analyticsSdk
val enumeratum = "com.beachape" %% "enumeratum" % V.enumeratum
val igluClient = "com.snowplowanalytics" %% "iglu-scala-client" % V.igluClient
val eventsManifest = "com.snowplowanalytics" %% "snowplow-events-manifest" % V.eventsManifest
val badRows = "com.snowplowanalytics" %% "snowplow-badrows" % V.badRows
val schemaDdl = "com.snowplowanalytics" %% "schema-ddl" % V.schemaDdl
val circeJawn = "io.circe" %% "circe-jawn" % V.circe % Test
val circeCore = "io.circe" %% "circe-core" % V.circe % Test
val circeOptics = "io.circe" %% "circe-optics" % V.circe % Test
val circeLiteral = "io.circe" %% "circe-literal" % V.circe % Test
val spark = "org.apache.spark" %% "spark-core" % V.spark % Provided
val sparkSql = "org.apache.spark" %% "spark-sql" % V.spark % Provided
val fs2 = "co.fs2" %% "fs2-core" % V.fs2
val decline = "com.monovore" %% "decline" % V.decline
val analyticsSdk = "com.snowplowanalytics" %% "snowplow-scala-analytics-sdk" % V.analyticsSdk
val enumeratum = "com.beachape" %% "enumeratum" % V.enumeratum
val igluClient = "com.snowplowanalytics" %% "iglu-scala-client" % V.igluClient
val eventsManifest = "com.snowplowanalytics" %% "snowplow-events-manifest" % V.eventsManifest
val badRows = "com.snowplowanalytics" %% "snowplow-badrows" % V.badRows
val schemaDdl = "com.snowplowanalytics" %% "schema-ddl" % V.schemaDdl
val jacksonScala = "com.fasterxml.jackson.module" %% "jackson-module-scala" % V.jackson
val circeJawn = "io.circe" %% "circe-jawn" % V.circe % Test
val circeCore = "io.circe" %% "circe-core" % V.circe % Test
val circeOptics = "io.circe" %% "circe-optics" % V.circe % Test
val circeLiteral = "io.circe" %% "circe-literal" % V.circe % Test


// Scala (test only)
Expand Down