gson-diff

Diff objects with Gson

License

License

Categories

Categories

Gson Data JSON
GroupId

GroupId

com.github.brymck
ArtifactId

ArtifactId

gson-diff
Last Version

Last Version

0.10.0
Release Date

Release Date

Type

Type

jar
Description

Description

gson-diff
Diff objects with Gson
Project URL

Project URL

https://github.com/brymck/gson-diff
Source Code Management

Source Code Management

https://github.com/brymck/gson-diff

Download gson-diff

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.brymck/gson-diff/ -->
<dependency>
    <groupId>com.github.brymck</groupId>
    <artifactId>gson-diff</artifactId>
    <version>0.10.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.brymck/gson-diff/
implementation 'com.github.brymck:gson-diff:0.10.0'
// https://jarcasting.com/artifacts/com.github.brymck/gson-diff/
implementation ("com.github.brymck:gson-diff:0.10.0")
'com.github.brymck:gson-diff:jar:0.10.0'
<dependency org="com.github.brymck" name="gson-diff" rev="0.10.0">
  <artifact name="gson-diff" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.brymck', module='gson-diff', version='0.10.0')
)
libraryDependencies += "com.github.brymck" % "gson-diff" % "0.10.0"
[com.github.brymck/gson-diff "0.10.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.6
org.jetbrains : annotations jar 15.0

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.5.2
org.junit.jupiter : junit-jupiter-engine jar 5.5.2
org.junit.jupiter : junit-jupiter-params jar 5.5.2

Project Modules

There are no modules declared in this project.

gson-diff

CircleCI codecov

gson-diff is a library that allows diffing of objects with Gson.

Usage

Include this in your POM:

<dependency>
  <groupId>com.github.brymck</groupId>
  <artifactId>gson-diff</artifactId>
  <version>0.10.0</version>
</dependency>

And use it as so, given two instances before and after of class Example:

Gson gson = new Gson();
GsonDiffer gsonDiffer = new GsonDiffer();

DiffResult diffResult = gsonDiffer.diff(
  gson,
  before,
  after
);

Versions

Version
0.10.0
0.9.0