Java API for GitHub
HttpUrlConnection
This release deprecates all classes and interfaces that use HttpUrlConnection
and implements replacements that do not depend on HttpUrlConnection
. Here is a list of the deprecated classes and interfaces and their replacements.
HttpConnector
: GithubConnector
, GithubConnectorRequest
, GithubConnectorResponse
extras.okhttp3.OkHttpConnector
: extras.okhttp3.OkHttpGitHubConnector
AbuseLimitHandler
: GitHubAbuseLimitHandler
RateLimitHandler
: GitHubRateLimitHandler
This release converts the library's JAR file to multi-release format. This means users running different versions of Java may see different behavior. The immediate example of this is HttpClientGitHubConnector
.
HttpClientGitHubConnector
for Java 11+This release adds support for the Java 11 HttpClient
. Users running the library with Java 11 or greater will have their default connector set to an instance of HttpClientGitHubConnector
. This will remove the need to workaround illegal reflection warnings or errors in more recent version of Java.
GitHubConnector
implementations incompatible with GitHub.getConnector()
Switching to ``OkHttpGitHubConnectoror
HttpClientGitHubConnectoris not completely backward compatible. If either of those connectors are used,
GitHub.getConnector()will throw an exception. The default connector also implements
HttpConnectorto preserve backward compatibility. These two modern
GitHubConnector` implementers do not, as doing so would defeat the point of having them.
list-workflow-runs
API @serkan-ozal (#1240)