I attempted to do a literal translation as much as possible.
Subprojects now need plugins to be configured directly so they
can use the appropriate syntax.
Also rename okhttp3.mockwebserverwrapper to okhttp3.mockwebserver
Directories are not renamed to minimize the git diff. That'll follow
in a separate commit.
Most users of the API are not impacted. The ones that are:
- CallTest subclasses QueueDispatcher
- DuplexTest uses duplex APIs
- HttpOverHttp2Test subclasses QueueDispatcher
This is part 2 of the plan described here:
https://github.com/square/okhttp/pull/6326
It turns out that the NIO dumpsterfire harms us again here. The Channels APIs
synchronize whenever reading or writing to a stream if the channel implements
SelectableChannel. If both the input stream and the output stream are on the
same channel, then it is impossible to read and write concurrently.
Fixes: https://github.com/square/okhttp/issues/4419