Skip to content

Commit

Permalink
[ISSUE-205] bump git api version to 1.111
Browse files Browse the repository at this point in the history
  • Loading branch information
baranowb committed May 18, 2020
1 parent 321084e commit b7c5004
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions github/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp-urlconnection</artifactId>
<version>2.7.5</version>
<version>${com.squareup.okhttp.okhttp-urlconnection.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.set</groupId>
Expand All @@ -44,7 +44,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.92</version>
<version>${org.kohsuke.github-api.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,10 @@ public boolean init(RepositoryConfig config) {
if (!parentInitiated)
return false;

try {
if (github != null && github.isCredentialValid()) {
return true;
} else {
return commonGithubInit(config);
}
} catch (IOException e) {
Utils.logException(LOG, "Authentication failed for username: " + config.getUsername(), e);
return false;
if (github != null && github.isCredentialValid()) {
return true;
} else {
return commonGithubInit(config);
}
}

Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
<junit.version>4.12</junit.version>
<org.mockito.version>1.10.19</org.mockito.version>
<org.wildfly.checkstyle-config.version>1.0.4.Final</org.wildfly.checkstyle-config.version>
<org.kohsuke.github-api.version>1.111</org.kohsuke.github-api.version>
<com.squareup.okhttp.okhttp-urlconnection.version>2.7.5</com.squareup.okhttp.okhttp-urlconnection.version>
</properties>


Expand Down

0 comments on commit b7c5004

Please sign in to comment.