Skip to content

Commit

Permalink
Merge pull request #111 from basil/jaxrs
Browse files Browse the repository at this point in the history
Fix `JacksonJsonProvider` by bundling jax-rs-api
  • Loading branch information
jtnord authored Dec 22, 2021
2 parents 1a45bad + 04a926c commit 773c36c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@
<artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${revision}</version>
</dependency>
<dependency> <!-- needed for jackson-jaxrs-json-provider -->
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>2.1.6</version> <!-- do not upgrade to version 3.x, as that has switched to Jakarta package names -->
</dependency>

<dependency>
<groupId>io.jenkins.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.fasterxml.jackson.jaxrs.json;

import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.RealJenkinsRule;

public class JacksonJsonProviderTest {

@Rule public RealJenkinsRule rr = new RealJenkinsRule();

@Test
public void smokes() throws Throwable {
rr.then(j -> new JacksonJsonProvider());
}
}

0 comments on commit 773c36c

Please sign in to comment.