v1.300 π
π Features
Deprecated all uses of 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,GithubConnectorResponseextras.okhttp3.OkHttpConnector:extras.okhttp3.OkHttpGitHubConnectorAbuseLimitHandler:GitHubAbuseLimitHandlerRateLimitHandler:GitHubRateLimitHandler
Multi-release JAR
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.
Modern GitHubConnector implementations incompatible with GitHub.getConnector()
Switching to ``OkHttpGitHubConnectororHttpClientGitHubConnector` is not completely backward compatible. If either of those connectors are used, `GitHub.getConnector()` will throw an exception. The default connector also implements `HttpConnector` to preserve backward compatibility. These two modern `GitHubConnector` implementers do not, as doing so would defeat the point of having them.
Changes
- Make HttpClientGitHubConnector the default for Java 11+ @bitwiseman (#1314)
- Add support for GitHub event branch_protection_rule @gjabouley-invn (#1301)
- Code cleanup @bitwiseman (#1307)
- Perform CI code coverage in Java 11 @bitwiseman (#1304)
- Add HttpClientGitHubConnector and multirelease jar implementation @bitwiseman (#1300)
- Move coverage to Java 11 @bitwiseman (#1299)
- Deprecate limit handlers using HttpURLConnection @bitwiseman (#1298)
- Swtich from HttpConnector to GitHubConnector @bitwiseman (#1290)
- Set Accept header to reasonable default @bitwiseman (#1289)
- Removed deprecated from javadoc @ReyhanPatria (#1286)
Dependencies
- Chore(deps): Bump spotbugs-maven-plugin from 4.4.2.2 to 4.5.0.0 @dependabot (#1311)
- Chore(deps-dev): Bump mockito-core from 4.0.0 to 4.1.0 @dependabot (#1310)
- Update okhttp to 4.9.2 @bitwiseman (#1281)
- Chore(deps): Bump okio from 2.5.0 to 2.10.0 @dependabot (#1272)
- Chore(deps-dev): Bump gson from 2.8.8 to 2.8.9 @dependabot (#1277)
- Chore(deps-dev): Bump awaitility from 4.1.0 to 4.1.1 @dependabot (#1275)
- Chore(deps): Bump spotless-maven-plugin from 2.15.0 to 2.17.3 @dependabot (#1276)
- Chore(deps): Bump spotbugs.version from 4.4.1 to 4.4.2 @dependabot (#1270)
- Chore(deps): Bump spotbugs-maven-plugin from 4.4.1 to 4.4.2.2 @dependabot (#1271)
- Chore(deps-dev): Bump mockito-core from 3.12.4 to 4.0.0 @dependabot (#1273)
- Chore(deps-dev): Bump archunit from 0.21.0 to 0.22.0 @dependabot (#1274)