File tree 2 files changed +16
-1
lines changed
src/main/java/com/fasterxml/jackson/core 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 38
38
still use Moditect to get JDK9+ module info support; need newer bundle plugin as well
39
39
(can just defaults from `jackson-parent`)
40
40
-->
41
-
42
41
<osgi .export>com.fasterxml.jackson.core;version=${project.version} ,
43
42
com.fasterxml.jackson.core.*;version=${project.version}
44
43
</osgi .export>
45
44
46
45
<!-- Generate PackageVersion.java into this directory. -->
47
46
<packageVersion .dir>com/fasterxml/jackson/core/json</packageVersion .dir>
48
47
<packageVersion .package>${project.groupId} .json</packageVersion .package>
48
+
49
+ <!-- Bnd annotations for generating extra OSGi metadata. -->
50
+ <version .bnd.annotation>6.3.1</version .bnd.annotation>
49
51
</properties >
50
52
51
53
<!-- Alas, need to include snapshot reference since otherwise can not find
@@ -142,6 +144,16 @@ com.fasterxml.jackson.core.*;version=${project.version}
142
144
</build >
143
145
144
146
<dependencies >
147
+ <!-- 31-Jul-2022, tatu: [core#768] OSGi metadata -->
148
+ <dependency >
149
+ <groupId >biz.aQute.bnd</groupId >
150
+ <artifactId >biz.aQute.bnd.annotation</artifactId >
151
+ <version >${version.bnd.annotation} </version >
152
+ <optional >true</optional >
153
+ <scope >provided</scope >
154
+ </dependency >
155
+
156
+ <!-- plus test dependencies -->
145
157
<dependency >
146
158
<groupId >org.junit.vintage</groupId >
147
159
<artifactId >junit-vintage-engine</artifactId >
Original file line number Diff line number Diff line change 8
8
import java .lang .ref .SoftReference ;
9
9
import java .net .URL ;
10
10
11
+ import aQute .bnd .annotation .spi .ServiceProvider ;
12
+
11
13
import com .fasterxml .jackson .core .format .InputAccessor ;
12
14
import com .fasterxml .jackson .core .format .MatchStrength ;
13
15
import com .fasterxml .jackson .core .io .*;
42
44
* @author Tatu Saloranta
43
45
*/
44
46
@ SuppressWarnings ("resource" )
47
+ @ ServiceProvider (JsonFactory .class ) // will be `TokenStreamFactory` in 3.x
45
48
public class JsonFactory
46
49
extends TokenStreamFactory
47
50
implements Versioned ,
You can’t perform that action at this time.
0 commit comments