Skip to content

Commit

Permalink
Use javax.ws.rs-api dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alecharp committed May 18, 2022
1 parent 8a1ce7c commit 00df06b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
<groupId>io.jenkins.plugins</groupId>
<artifactId>jersey2-api</artifactId>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1.1</version>
</dependency>

<!-- For Authentication Details -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import javax.ws.rs.client.WebTarget;

import org.apache.commons.lang.StringUtils;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;

Expand Down Expand Up @@ -49,8 +48,7 @@ public AbstractRESTfulVersionReader(String pURL) {
}

void init() {
ClientConfig config = new ClientConfig();
Client client = ClientBuilder.newClient(config);
Client client = ClientBuilder.newClient();

if (StringUtils.isNotEmpty(mUserName) && StringUtils.isNotEmpty(mUserPassword)) {
LOGGER.fine("setting username to: " + mUserName);
Expand Down

0 comments on commit 00df06b

Please sign in to comment.