Skip to content

Commit

Permalink
Add Snappy and Dropwizard metric dependency. (#584)
Browse files Browse the repository at this point in the history
Motivation:
Snappy and Dropwizard dependencies are removed from ZooKeeper 3.6.0
apache/zookeeper@b787770#diff-237e154d86dc584115184b6d4b8bfda7ef88fe934a67ae796c6856badc0cacbf
The test didn't fail because curator-test has the dependencies.

Modifications:
- Add Snappy 1.1.7
- Add Dropwizard metric 3.2.5

Result:
- No more `ClassNotFoundException`
  • Loading branch information
minwoox authored Apr 12, 2021
1 parent 520184d commit b369879
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ org.apache.curator:
exclusions:
- org.apache.zookeeper:zookeeper

# Ensure that we use the same Snappy version as what Curator depends on.
# See: https://github.com/apache/curator/blob/master/pom.xml
org.xerial.snappy:
snappy-java: { version: '1.1.7' }

# Ensure that we use the same Dropwizard version as what Curator depends on.
# See: https://github.com/apache/curator/blob/master/pom.xml
io.dropwizard.metrics:
metrics-core: { version: '3.2.5' }

org.apache.shiro:
# Don't update `shiro` version
shiro-core:
Expand Down
4 changes: 4 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ dependencies {
implementation 'org.apache.zookeeper:zookeeper'
testImplementation 'org.apache.curator:curator-test'

// Missing dependencies in ZooKeeper
implementation 'org.xerial.snappy:snappy-java'
implementation 'io.dropwizard.metrics:metrics-core'

// DiffUtils
implementation 'com.googlecode.java-diff-utils:diffutils'

Expand Down

0 comments on commit b369879

Please sign in to comment.