Skip to content

Commit

Permalink
(feat) 移除对 jackson 的依赖 (sofastack#213)
Browse files Browse the repository at this point in the history
* remove jackson dependency

* remove jackson dependency

* update databind version
  • Loading branch information
SteNicholas authored and fengjiachun committed Jul 20, 2019
1 parent 6c16570 commit 73d62dc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 13 deletions.
15 changes: 15 additions & 0 deletions jraft-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
<packaging>jar</packaging>
<name>jraft-example ${project.version}</name>

<properties>
<jackson.databind.version>2.9.9.1</jackson.databind.version>
<jackson.dataformat.version>2.9.8</jackson.dataformat.version>
</properties>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -40,6 +45,16 @@
<artifactId>log4j-jcl</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.dataformat.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
9 changes: 9 additions & 0 deletions jraft-rheakv/rheakv-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<artifactId>jraft-rheakv-core</artifactId>
<name>rheakv-core ${project.version}</name>

<properties>
<jackson.databind.version>2.9.9.1</jackson.databind.version>
<jackson.dataformat.version>2.9.8</jackson.dataformat.version>
</properties>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -50,10 +55,14 @@
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.dataformat.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
<scope>test</scope>
</dependency>
<!--<dependency>-->
<!--<groupId>com.github.luben</groupId>-->
Expand Down
15 changes: 15 additions & 0 deletions jraft-rheakv/rheakv-pd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<artifactId>jraft-rheakv-pd</artifactId>
<name>rheakv-pd ${project.version}</name>

<properties>
<jackson.databind.version>2.9.9.1</jackson.databind.version>
<jackson.dataformat.version>2.9.8</jackson.dataformat.version>
</properties>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
Expand All @@ -28,5 +33,15 @@
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.dataformat.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
</dependencies>
</project>
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
<disruptor.version>3.3.7</disruptor.version>
<hamcrest.version>1.3</hamcrest.version>
<hessian.version>3.3.6</hessian.version>
<jackson.databind.version>2.9.9</jackson.databind.version>
<jackson.dataformat.version>2.9.8</jackson.dataformat.version>
<jacoco.path>${project.build.directory}/jacoco.exec</jacoco.path>
<jacoco.skip>true</jacoco.skip>
<java.source.version>1.8</java.source.version>
Expand Down Expand Up @@ -231,17 +229,6 @@
<!--<artifactId>zstd-jni</artifactId>-->
<!--<version>${zstd.version}</version>-->
<!--</dependency>-->
<!-- yaml -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.dataformat.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
<!-- benchmark -->
<dependency>
<groupId>org.openjdk.jmh</groupId>
Expand Down

0 comments on commit 73d62dc

Please sign in to comment.