Compare commits

...

6 Commits

Author SHA1 Message Date
Liam Newman
3dae361d7b [maven-release-plugin] prepare release github-api-1.103 2020-01-22 11:56:59 -08:00
Liam Newman
967831388e Relocate shaded dependecies and generate separate shaded artifact 2020-01-22 09:59:10 -08:00
Liam Newman
f9794f20d4 Use Https 2020-01-21 17:22:58 -08:00
Liam Newman
f98efd6af0 Update site.xml 2020-01-21 16:56:44 -08:00
Liam Newman
69bf0641f8 Update site.xml
Closes #671
2020-01-21 16:55:46 -08:00
Liam Newman
5791843d16 [maven-release-plugin] prepare for next development iteration 2020-01-21 15:40:09 -08:00
3 changed files with 20 additions and 8 deletions

18
pom.xml
View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.kohsuke</groupId> <groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId> <artifactId>github-api</artifactId>
<version>1.102</version> <version>1.103</version>
<name>GitHub API for Java</name> <name>GitHub API for Java</name>
<url>https://github-api.kohsuke.org/</url> <url>https://github-api.kohsuke.org/</url>
<description>GitHub API for Java</description> <description>GitHub API for Java</description>
@@ -11,7 +11,7 @@
<connection>scm:git:git@github.com/github-api/${project.artifactId}.git</connection> <connection>scm:git:git@github.com/github-api/${project.artifactId}.git</connection>
<developerConnection>scm:git:ssh://git@github.com/github-api/${project.artifactId}.git</developerConnection> <developerConnection>scm:git:ssh://git@github.com/github-api/${project.artifactId}.git</developerConnection>
<url>https://${project.artifactId}.kohsuke.org/</url> <url>https://${project.artifactId}.kohsuke.org/</url>
<tag>github-api-1.102</tag> <tag>github-api-1.103</tag>
</scm> </scm>
<distributionManagement> <distributionManagement>
@@ -85,11 +85,22 @@
<version>3.2.1</version> <version>3.2.1</version>
<executions> <executions>
<execution> <execution>
<id>shaded-jar</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<relocations>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>hidden.com.fasterxml.jackson</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache</pattern>
<shadedPattern>hidden.org.apache</shadedPattern>
</relocation>
</relocations>
<artifactSet> <artifactSet>
<excludes> <excludes>
<exclude>com.infradna.tool:bridge-method-annotation</exclude> <exclude>com.infradna.tool:bridge-method-annotation</exclude>
@@ -100,6 +111,7 @@
<exclude>com.google.code.findbugs:*</exclude> <exclude>com.google.code.findbugs:*</exclude>
</excludes> </excludes>
</artifactSet> </artifactSet>
<shadedArtifactAttached>true</shadedArtifactAttached>
<filters> <filters>
<filter> <filter>
<artifact>*:*</artifact> <artifact>*:*</artifact>
@@ -538,7 +550,7 @@
<groupId>com.github.spotbugs</groupId> <groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId> <artifactId>spotbugs-annotations</artifactId>
<version>${spotbugs.version}</version> <version>${spotbugs.version}</version>
<optional>true</optional> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.tomakehurst</groupId> <groupId>com.github.tomakehurst</groupId>

View File

@@ -17,7 +17,7 @@ GitHub github = GitHub.connect();
GHRepository repo = github.createRepository( GHRepository repo = github.createRepository(
"new-repository","this is my new repository", "new-repository","this is my new repository",
"http://www.kohsuke.org/",true/*public*/); "https://www.kohsuke.org/",true/*public*/);
repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler")); repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler"));
repo.delete(); repo.delete();
+-----+ +-----+
@@ -139,10 +139,10 @@ GitHub github = GitHubBuilder.fromEnvironment().build();
Pluggable HTTP client Pluggable HTTP client
This library comes with a pluggable connector to use different HTTP client implementations This library comes with a pluggable connector to use different HTTP client implementations
through <<<HttpConnector>>>. In particular, this means you can use {{{http://square.github.io/okhttp/}OkHttp}}, through <<<HttpConnector>>>. In particular, this means you can use {{{https://square.github.io/okhttp/}OkHttp}},
so we can make use of it's HTTP response cache. so we can make use of it's HTTP response cache.
Making a conditional request against the GitHub API and receiving a 304 response Making a conditional request against the GitHub API and receiving a 304 response
{{{http://developer.github.com/v3/#conditional-requests}does not count against the rate limit}}. {{{https://developer.github.com/v3/#conditional-requests}does not count against the rate limit}}.
The following code shows an example of how to set up persistent cache on the disk: The following code shows an example of how to set up persistent cache on the disk:

View File

@@ -2,7 +2,7 @@
<project name="GitHub API for Java"> <project name="GitHub API for Java">
<bannerLeft> <bannerLeft>
<name>GitHub API for Java</name> <name>GitHub API for Java</name>
<href>http://github-api.kohsuke.org/</href> <href>https://github-api.kohsuke.org/</href>
</bannerLeft> </bannerLeft>
<skin> <skin>
<groupId>org.kohsuke</groupId> <groupId>org.kohsuke</groupId>
@@ -13,7 +13,7 @@
<body> <body>
<menu name="Git Hub API for Java"> <menu name="Git Hub API for Java">
<item name="Introduction" href="/index.html"/> <item name="Introduction" href="/index.html"/>
<item name="Download" href="http://mvnrepository.com/artifact/${project.groupId}/${project.artifactId}"/> <item name="Download" href="https://mvnrepository.com/artifact/${project.groupId}/${project.artifactId}"/>
<item name="Source code" href="https://github.com/github-api/${project.artifactId}"/> <item name="Source code" href="https://github.com/github-api/${project.artifactId}"/>
<item name="Mailing List" href="https://groups.google.com/forum/#!forum/github-api"/> <item name="Mailing List" href="https://groups.google.com/forum/#!forum/github-api"/>
</menu> </menu>