Skip to content

Commit bbc03ae

Browse files
committed
Jakarta Namespace - jackson compatible on the jakarta classifier
just until FasterXML/jackson-modules-base#116
1 parent d72f6f0 commit bbc03ae

File tree

82 files changed

+6116
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+6116
-87
lines changed

apache-cxf/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@
6868
</dependency>
6969

7070
<dependency>
71-
<groupId>com.fasterxml.jackson.jaxrs</groupId>
71+
<groupId>com.guicedee.services</groupId>
7272
<artifactId>jackson-jaxrs-json-provider</artifactId>
73+
<classifier>jakarta</classifier>
7374
</dependency>
7475

7576
<dependency>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.apache.cxf.jaxrs.impl.RuntimeDelegateImpl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.apache.cxf.jaxrs.sse.client.SseEventSourceBuilderImpl
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
2+
com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
2+
com.sun.xml.messaging.saaj.soap.ver1_2.SOAPFactory1_2Impl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.apache.cxf.jaxws22.spi.ProviderImpl

jackson-base/pom.xml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<!-- This module was also published with a richer model, Gradle metadata, -->
4+
<!-- which should be used instead. Do not delete the following line which -->
5+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
6+
<!-- that they should prefer consuming it instead. -->
7+
<!-- do_not_remove: published-with-gradle-metadata -->
8+
<modelVersion>4.0.0</modelVersion>
9+
10+
<parent>
11+
<groupId>com.guicedee.services</groupId>
12+
<artifactId>services-parent</artifactId>
13+
<version>0.0.0_0-SNAPSHOT</version>
14+
</parent>
15+
16+
<artifactId>jackson-jaxrs-base</artifactId>
17+
<name>Jackson-JAXRS-base</name>
18+
<packaging>jar</packaging>
19+
20+
<description>Pile of code that is shared by all Jackson-based JAX-RS
21+
providers.
22+
</description>
23+
24+
<properties>
25+
<osgi.export>
26+
${project.groupId}.annotation.*;version=${project.version}
27+
,${project.groupId}.base.*;version=${project.version}
28+
,${project.groupId}.cfg.*;version=${project.version}
29+
,${project.groupId}.util.*;version=${project.version}
30+
</osgi.export>
31+
<osgi.import>javax.ws.rs;version="${javax.ws.rs.version}"
32+
,javax.ws.rs.core;version="${javax.ws.rs.version}"
33+
,javax.ws.rs.ext;version="${javax.ws.rs.version}",
34+
*
35+
</osgi.import>
36+
</properties>
37+
38+
<dependencies>
39+
<!-- Extends Jackson core, mapper -->
40+
<dependency>
41+
<groupId>com.fasterxml.jackson.core</groupId>
42+
<artifactId>jackson-core</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.fasterxml.jackson.core</groupId>
46+
<artifactId>jackson-databind</artifactId>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>com.guicedee.services</groupId>
51+
<artifactId>jakarta.ws.rs-api</artifactId>
52+
</dependency>
53+
<!-- test deps should come from parent -->
54+
</dependencies>
55+
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<groupId>org.moditect</groupId>
60+
<artifactId>moditect-maven-plugin</artifactId>
61+
<configuration>
62+
<jvmVersion>11</jvmVersion>
63+
</configuration>
64+
</plugin>
65+
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-shade-plugin</artifactId>
69+
<executions>
70+
<execution>
71+
<id>jakarta</id>
72+
<phase>package</phase>
73+
<goals>
74+
<goal>shade</goal>
75+
</goals>
76+
<configuration>
77+
<shadedArtifactAttached>true</shadedArtifactAttached>
78+
<shadedClassifierName>jakarta</shadedClassifierName>
79+
<createDependencyReducedPom>false</createDependencyReducedPom>
80+
<artifactSet>
81+
<includes>
82+
<include>${project.groupId}:${project.artifactId}</include>
83+
</includes>
84+
</artifactSet>
85+
<relocations>
86+
<relocation>
87+
<pattern>javax.xml.bind</pattern>
88+
<shadedPattern>jakarta.xml.bind</shadedPattern>
89+
</relocation>
90+
<relocation>
91+
<pattern>javax.ws.rs</pattern>
92+
<shadedPattern>jakarta.ws.rs</shadedPattern>
93+
</relocation>
94+
</relocations>
95+
</configuration>
96+
</execution>
97+
</executions>
98+
</plugin>
99+
100+
</plugins>
101+
</build>
102+
103+
</project>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.fasterxml.jackson.jaxrs.annotation;
2+
3+
import java.lang.annotation.ElementType;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
import com.fasterxml.jackson.databind.DeserializationFeature;
9+
import com.fasterxml.jackson.databind.SerializationFeature;
10+
11+
/**
12+
* Annotation that can be used enable and/or disable various
13+
* features for <code>ObjectReader</code>s and <code>ObjectWriter</code>s.
14+
*/
15+
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.PARAMETER })
16+
@Retention(RetentionPolicy.RUNTIME)
17+
@com.fasterxml.jackson.annotation.JacksonAnnotation
18+
public @interface JacksonFeatures
19+
{
20+
/**
21+
* Deserialization features to enable.
22+
*/
23+
public DeserializationFeature[] deserializationEnable() default { };
24+
25+
/**
26+
* Deserialization features to disable.
27+
*/
28+
public DeserializationFeature[] deserializationDisable() default { };
29+
30+
/**
31+
* Serialization features to enable.
32+
*/
33+
public SerializationFeature[] serializationEnable() default { };
34+
35+
/**
36+
* Serialization features to disable.
37+
*/
38+
public SerializationFeature[] serializationDisable() default { };
39+
}

0 commit comments

Comments
 (0)