marklogic/java-client-api

okhttp-digest coordinates have changed

rjrudin opened this issue · 5 comments

This is really just a note - see https://github.com/rburgst/okhttp-digest - the coordinates of okhttp-digest have changed with its move from jcenter to mavenCentral.

The scope of this ticket could also be larger - i.e. remove "jcenter()" from java-client-api and update any needed dependencies (such as okhttp-digest) and verify that the code still compiles, tests still work, and artifacts can still be assembled.

Note that this is an issue for me right now as I try to upgrade ml-javaclient-util to Java Client 5.4.0 and not use "jcenter()" as a repository. If I try to run a test using ml-javaclient-util, I get an error since okhttp-digest cannot be resolved, as its coordinates have changed.

So in order for ml-javaclient-util to stop using jcenter(), I have to modify its build.gradle script to bring in the updated version of okhttp-digest.

Here's what I'm doing to workaround the problem:

  api ('com.marklogic:marklogic-client-api:5.4.0') {
		exclude module: "okhttp-digest"
	}
	implementation 'io.github.rburgst:okhttp-digest:2.5'

Related to: #1230

Assuming (if and only if) the latest of all dependencies of the Java API are available on Maven Central, the build.gradle files for the Java API should just remove JCenter as a repository.

Was able to run tests (Dev. team's JUnit tests) successfully and make zip file distribution. The zip file contains okhttp-digest version 2.5 jar file.

There's no server-side change in this issue.