confluentinc / confluent-kafka-dotnet

Confluent's Apache Kafka .NET client
https://github.com/confluentinc/confluent-kafka-dotnet/wiki
Apache License 2.0
64 stars 861 forks source link

Update Newtonsoft.Json version 9.0.1 to 11.0.1 #461

Closed e-tinus closed 6 years ago

e-tinus commented 6 years ago

Description

I did some small checks, and it seems possible to upgrade the current NuGet package of Newtonsoft.Json used inside this project. Newtonsoft.Json is currently at version 11.0.1, while this project uses version 9.0.1.

The only thing that is also required for updating this project, is the apache-avro since it is also using the 9.0.1 version..

It really helps me integrating this project into our software package that uses the latest version of Newtonsoft.Json. :)

Checklist

Please provide the following information:

mhowlett commented 6 years ago

Thanks for pointing this out @e-tinus - we should be able to update the avro nuget package to specify a version range for the newtonsoft.json dependency that crosses major version numbers. I believed this was already the case, but it looks like it's not.

mhowlett commented 6 years ago

I did some quick tests and I'm having trouble replicating any dependency problems using Confluent.Apache.Avro in projects referencing Newtonsoft.Json v11.0.1. This is also as I would expect from the documention here: https://docs.microsoft.com/en-us/nuget/reference/package-versioning

Can you provide more information about your scenario? It's not a good idea to increase the Newtonsoft.Json dependency to 11.0.1 since we want Confluent.Kafka.Avro to be backwards compatible as far as possible.

e-tinus commented 6 years ago

Hey @mhowlett, thanks for picking this up so fast! I did some tests within a default C# project and indeed, no problems there.. We are trying to integrate the confluent-kafka-dotnet package into Unity3D, and I think they are causing the problem. I've created a small test project for them to hopefully solve their bug asap.

I'm closing this issue, since no action is required anymore. Thanks again for the response and tests.