-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1300 from bitwiseman/task/multirelease
Add HttpClientGitHubConnector and multirelease jar implementation
- Loading branch information
Showing
9 changed files
with
319 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/org/kohsuke/github/extras/HttpClientGitHubConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.kohsuke.github.extras; | ||
|
||
import org.kohsuke.github.connector.GitHubConnector; | ||
import org.kohsuke.github.connector.GitHubConnectorRequest; | ||
import org.kohsuke.github.connector.GitHubConnectorResponse; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* {@link GitHubConnector} wrapper that sets timeout | ||
* | ||
* @author Liam Newman | ||
*/ | ||
public class HttpClientGitHubConnector implements GitHubConnector { | ||
|
||
/** | ||
* Instantiates a new Impatient http connector. | ||
*/ | ||
public HttpClientGitHubConnector() { | ||
throw new UnsupportedOperationException("java.net.http.HttpClient is only supported in Java 11+."); | ||
} | ||
|
||
@Override | ||
public GitHubConnectorResponse send(GitHubConnectorRequest connectorRequest) throws IOException { | ||
throw new UnsupportedOperationException("java.net.http.HttpClient is only supported in Java 11+."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.