Skip to content

Commit 8faecba

Browse files
committed
Fix site errors
1 parent 739551c commit 8faecba

File tree

6 files changed

+48
-6
lines changed

6 files changed

+48
-6
lines changed

.github/workflows/maven-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: Maven Download all dependencies
2020
run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline
2121
- name: Maven Build
22-
run: mvn -B package --file pom.xml
22+
run: mvn -B install site --file pom.xml

pom.xml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,45 @@
6060
<artifactId>jacoco-maven-plugin</artifactId>
6161
<version>0.8.5</version>
6262
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-javadoc-plugin</artifactId>
66+
<version>3.1.1</version>
67+
</plugin>
6368
</plugins>
6469
</pluginManagement>
6570
<plugins>
71+
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-site-plugin</artifactId>
75+
<version>3.8.2</version>
76+
</plugin>
77+
<plugin>
78+
<artifactId>maven-release-plugin</artifactId>
79+
<version>2.5.3</version>
80+
<configuration>
81+
<releaseProfiles>release</releaseProfiles>
82+
</configuration>
83+
</plugin>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-project-info-reports-plugin</artifactId>
87+
<version>3.0.0</version>
88+
<dependencies>
89+
<dependency>
90+
<groupId>org.apache.bcel</groupId>
91+
<artifactId>bcel</artifactId>
92+
<version>6.4.1</version>
93+
</dependency>
94+
</dependencies>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-source-plugin</artifactId>
99+
<version>3.1.0</version>
100+
</plugin>
101+
66102
<plugin>
67103
<artifactId>maven-compiler-plugin</artifactId>
68104
<version>3.8.1</version>
@@ -217,7 +253,7 @@
217253
<dependency>
218254
<groupId>org.eclipse.jgit</groupId>
219255
<artifactId>org.eclipse.jgit</artifactId>
220-
<version>5.5.1.201910021850-r</version>
256+
<version>5.4.3.201909031940-r</version>
221257
<scope>test</scope>
222258
</dependency>
223259
<dependency>
@@ -292,7 +328,7 @@
292328
<id>jacoco</id>
293329
<activation>
294330
<property>
295-
<name>!jacoco.disabled</name>
331+
<name>enable-jacoco</name>
296332
</property>
297333
</activation>
298334
<build>
@@ -392,6 +428,10 @@
392428
<groupId>org.apache.maven.plugins</groupId>
393429
<artifactId>maven-javadoc-plugin</artifactId>
394430
</plugin>
431+
<plugin>
432+
<groupId>org.apache.maven.plugins</groupId>
433+
<artifactId>maven-project-info-reports-plugin</artifactId>
434+
</plugin>
395435
</plugins>
396436
</reporting>
397437

src/main/java/org/kohsuke/github/AbuseLimitHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public abstract class AbuseLimitHandler {
2727
* this exception (or wrap this exception into another exception and throw it).
2828
* @param uc
2929
* Connection that resulted in an error. Useful for accessing other response headers.
30+
* @throws IOException
3031
*/
3132
public abstract void onError(IOException e, HttpURLConnection uc) throws IOException;
3233

@@ -38,7 +39,7 @@ public abstract class AbuseLimitHandler {
3839
public void onError(IOException e, HttpURLConnection uc) throws IOException {
3940
try {
4041
Thread.sleep(parseWaitTime(uc));
41-
} catch (InterruptedException _) {
42+
} catch (InterruptedException ex) {
4243
throw (InterruptedIOException)new InterruptedIOException().initCause(e);
4344
}
4445
}

src/main/java/org/kohsuke/github/GHApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public void setPermissions(Map<String, String> permissions) {
104104
* You must use a JWT to access this endpoint.
105105
*
106106
* @see <a href="https://developer.github.com/v3/apps/#list-installations">List installations</a>
107+
* @return a list of App installations
107108
*/
108109
@Preview @Deprecated
109110
public PagedIterable<GHAppInstallation> listInstallations() {

src/main/java/org/kohsuke/github/GHProject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* A GitHub project.
35-
* @see https://developer.github.com/v3/projects/
35+
* @see <a href="https://developer.github.com/v3/projects/">Projects</a>
3636
* @author Martin van Zijl
3737
*/
3838
public class GHProject extends GHObject {

src/main/java/org/kohsuke/github/GitHub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public Map<String, GHOrganization> getUserPublicOrganizations(GHUser user) throw
551551
*
552552
* To retrieve full organization details, you need to call {@link #getOrganization(String)}
553553
*
554-
* @param user the user to retrieve public Organization membership information for
554+
* @param login the user to retrieve public Organization membership information for
555555
*
556556
* @return the public Organization memberships for the user
557557
*/

0 commit comments

Comments
 (0)