simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 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"> |
Tatu Saloranta | 5ba72df | 2020-05-22 17:34:10 -0700 | [diff] [blame] | 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 --> |
Ben Gertzfield | 66a12b6 | 2013-01-04 12:01:07 -0800 | [diff] [blame] | 8 | <modelVersion>4.0.0</modelVersion> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 9 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 10 | <parent> |
Tatu Saloranta | 0946809 | 2014-02-28 20:37:39 -0800 | [diff] [blame] | 11 | <groupId>com.fasterxml.jackson</groupId> |
Tatu Saloranta | f9ea979 | 2017-09-09 17:27:52 -0700 | [diff] [blame] | 12 | <artifactId>jackson-base</artifactId> |
Tatu Saloranta | 8eb15fd | 2020-04-28 16:46:24 -0700 | [diff] [blame] | 13 | <version>2.12.0-SNAPSHOT</version> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 14 | </parent> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 15 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 16 | <groupId>com.fasterxml.jackson.core</groupId> |
| 17 | <artifactId>jackson-databind</artifactId> |
Tatu Saloranta | 8eb15fd | 2020-04-28 16:46:24 -0700 | [diff] [blame] | 18 | <version>2.12.0-SNAPSHOT</version> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 19 | <name>jackson-databind</name> |
Lukasz Dywicki | 9fb18f4 | 2013-09-03 19:27:55 +0200 | [diff] [blame] | 20 | <packaging>bundle</packaging> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 21 | <description>General data-binding functionality for Jackson: works on core streaming API</description> |
Tatu Saloranta | 7cf95f1 | 2014-11-06 08:28:25 -0800 | [diff] [blame] | 22 | <url>http://github.com/FasterXML/jackson</url> |
Cowtowncoder | 16aa305 | 2015-10-07 11:14:52 -0700 | [diff] [blame] | 23 | <inceptionYear>2008</inceptionYear> |
Tatu Saloranta | 07cd010 | 2020-01-28 19:43:42 -0800 | [diff] [blame] | 24 | <licenses> |
| 25 | <license> |
| 26 | <name>The Apache Software License, Version 2.0</name> |
| 27 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 28 | <distribution>repo</distribution> |
| 29 | </license> |
| 30 | </licenses> |
| 31 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 32 | <scm> |
| 33 | <connection>scm:git:git@github.com:FasterXML/jackson-databind.git</connection> |
| 34 | <developerConnection>scm:git:git@github.com:FasterXML/jackson-databind.git</developerConnection> |
Ben Gertzfield | 66a12b6 | 2013-01-04 12:01:07 -0800 | [diff] [blame] | 35 | <url>http://github.com/FasterXML/jackson-databind</url> |
Tatu Saloranta | 25302b6 | 2020-04-25 17:15:11 -0700 | [diff] [blame] | 36 | <tag>HEAD</tag> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 37 | </scm> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 38 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 39 | <properties> |
Tatu Saloranta | 8658f24 | 2018-06-14 10:04:39 -0700 | [diff] [blame] | 40 | <!-- With Jackson 2.10 baseline is JDK 7 (except for annotations/streaming), |
Tatu Saloranta | 5fdb932 | 2016-02-28 17:47:30 -0800 | [diff] [blame] | 41 | and new language features (diamond pattern) may be used. |
Tatu Saloranta | 6580734 | 2016-09-15 18:15:09 -0700 | [diff] [blame] | 42 | JDK classes are still loaded dynamically since there isn't much downside |
| 43 | (small number of types); this allows use on JDK 6 platforms still (including |
| 44 | Android) |
Cowtowncoder | 37b4ad5 | 2015-10-02 17:09:37 -0700 | [diff] [blame] | 45 | --> |
Tatu Saloranta | 8f4b623 | 2016-02-03 19:03:17 -0800 | [diff] [blame] | 46 | <javac.src.version>1.7</javac.src.version> |
| 47 | <javac.target.version>1.7</javac.target.version> |
Cowtowncoder | 37b4ad5 | 2015-10-02 17:09:37 -0700 | [diff] [blame] | 48 | |
Cowtowncoder | 129180d | 2015-08-14 14:54:06 -0700 | [diff] [blame] | 49 | <!-- Can not use default, since group id != Java package name here --> |
| 50 | <osgi.export>com.fasterxml.jackson.databind.*;version=${project.version}</osgi.export> |
Tatu Saloranta | 3ebfcd1 | 2019-04-15 21:08:23 -0700 | [diff] [blame] | 51 | <!-- fix for databind#2299: using jackson-databind in an OSGi environment under Android --> |
| 52 | <osgi.import> |
Tatu Saloranta | 7da282d | 2019-04-15 21:05:00 -0700 | [diff] [blame] | 53 | org.w3c.dom.bootstrap;resolution:=optional, |
Tatu Saloranta | 3ebfcd1 | 2019-04-15 21:08:23 -0700 | [diff] [blame] | 54 | * |
Tatu Saloranta | 7da282d | 2019-04-15 21:05:00 -0700 | [diff] [blame] | 55 | </osgi.import> |
Ben Gertzfield | 5780f88 | 2013-01-03 17:04:21 -0800 | [diff] [blame] | 56 | |
Ben Gertzfield | 66a12b6 | 2013-01-04 12:01:07 -0800 | [diff] [blame] | 57 | <!-- Generate PackageVersion.java into this directory. --> |
Tatu Saloranta | f314ac7 | 2013-01-10 19:50:17 -0800 | [diff] [blame] | 58 | <packageVersion.dir>com/fasterxml/jackson/databind/cfg</packageVersion.dir> |
Ben Gertzfield | 66a12b6 | 2013-01-04 12:01:07 -0800 | [diff] [blame] | 59 | <packageVersion.package>com.fasterxml.jackson.databind.cfg</packageVersion.package> |
Tatu Saloranta | 3ac8ccc | 2017-09-07 10:08:39 -0700 | [diff] [blame] | 60 | |
Tatu Saloranta | 77bd2ef | 2019-02-08 19:25:12 -0800 | [diff] [blame] | 61 | <version.powermock>2.0.0</version.powermock> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 62 | </properties> |
| 63 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 64 | <dependencies> |
| 65 | <!-- Builds on core streaming API; also needs core annotations --> |
| 66 | <dependency> |
| 67 | <groupId>com.fasterxml.jackson.core</groupId> |
Tatu Saloranta | deaee9c | 2012-03-25 12:01:34 -0700 | [diff] [blame] | 68 | <artifactId>jackson-annotations</artifactId> |
Tatu Saloranta | cd6ebaf | 2017-03-06 20:10:33 -0800 | [diff] [blame] | 69 | <!-- 06-Mar-2017, tatu: Although bom provides for dependencies, some legacy |
| 70 | usage seems to benefit from actually specifying version here in case |
| 71 | it is dependent on transitively |
| 72 | --> |
| 73 | <version>${jackson.version.annotations}</version> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>com.fasterxml.jackson.core</groupId> |
Tatu Saloranta | deaee9c | 2012-03-25 12:01:34 -0700 | [diff] [blame] | 77 | <artifactId>jackson-core</artifactId> |
Tatu Saloranta | cd6ebaf | 2017-03-06 20:10:33 -0800 | [diff] [blame] | 78 | <version>${jackson.version.core}</version> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 79 | </dependency> |
Tatu Saloranta | 6e21fbf | 2011-12-24 10:08:25 -0800 | [diff] [blame] | 80 | |
Tatu Saloranta | 0946809 | 2014-02-28 20:37:39 -0800 | [diff] [blame] | 81 | <!-- and for testing we need a few libraries |
Tatu Saloranta | 6e21fbf | 2011-12-24 10:08:25 -0800 | [diff] [blame] | 82 | libs for which we use reflection for code, but direct dep for testing |
| 83 | --> |
Tatu Saloranta | 504464d | 2016-05-03 19:25:52 -0700 | [diff] [blame] | 84 | |
| 85 | <dependency> |
lufe66 | cfe88fe | 2015-06-30 15:35:30 +0200 | [diff] [blame] | 86 | <groupId>org.powermock</groupId> |
Tatu Saloranta | 77bd2ef | 2019-02-08 19:25:12 -0800 | [diff] [blame] | 87 | <artifactId>powermock-core</artifactId> |
| 88 | <version>${version.powermock}</version> |
lufe66 | cfe88fe | 2015-06-30 15:35:30 +0200 | [diff] [blame] | 89 | <scope>test</scope> |
Tatu Saloranta | 3c35f1c | 2015-11-28 12:18:48 -0800 | [diff] [blame] | 90 | </dependency> |
| 91 | <dependency> |
lufe66 | cfe88fe | 2015-06-30 15:35:30 +0200 | [diff] [blame] | 92 | <groupId>org.powermock</groupId> |
Tatu Saloranta | 77bd2ef | 2019-02-08 19:25:12 -0800 | [diff] [blame] | 93 | <artifactId>powermock-module-junit4</artifactId> |
| 94 | <version>${version.powermock}</version> |
| 95 | <scope>test</scope> |
| 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>org.powermock</groupId> |
| 99 | <artifactId>powermock-api-mockito2</artifactId> |
| 100 | <version>${version.powermock}</version> |
lufe66 | cfe88fe | 2015-06-30 15:35:30 +0200 | [diff] [blame] | 101 | <scope>test</scope> |
Tatu Saloranta | 3c35f1c | 2015-11-28 12:18:48 -0800 | [diff] [blame] | 102 | </dependency> |
Michael Spiegel | e7c5420 | 2014-11-26 20:40:21 -0500 | [diff] [blame] | 103 | <!-- For testing TestNoClassDefFoundDeserializer --> |
| 104 | <dependency> |
Michael Spiegel | 95f3fab | 2014-11-29 10:51:55 -0500 | [diff] [blame] | 105 | <groupId>javax.measure</groupId> |
| 106 | <artifactId>jsr-275</artifactId> |
Cowtowncoder | 37b4ad5 | 2015-10-02 17:09:37 -0700 | [diff] [blame] | 107 | <version>1.0.0</version> |
Michael Spiegel | e7c5420 | 2014-11-26 20:40:21 -0500 | [diff] [blame] | 108 | <scope>test</scope> |
| 109 | </dependency> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 110 | </dependencies> |
| 111 | |
Tatu Saloranta | dd97c73 | 2018-03-26 21:04:35 -0700 | [diff] [blame] | 112 | <!-- Alas, need to include snapshot reference since otherwise can not find |
| 113 | snapshot of parent... --> |
| 114 | <repositories> |
| 115 | <repository> |
| 116 | <id>sonatype-nexus-snapshots</id> |
| 117 | <name>Sonatype Nexus Snapshots</name> |
| 118 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 119 | <releases><enabled>false</enabled></releases> |
| 120 | <snapshots><enabled>true</enabled></snapshots> |
| 121 | </repository> |
| 122 | </repositories> |
| 123 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 124 | <build> |
Tatu Saloranta | 7eeabba | 2014-04-26 12:23:49 -0700 | [diff] [blame] | 125 | <plugins> |
Tatu Saloranta | b6e6e57 | 2019-08-24 16:23:24 -0700 | [diff] [blame] | 126 | |
| 127 | <plugin> |
| 128 | <groupId>org.jacoco</groupId> |
| 129 | <artifactId>jacoco-maven-plugin</artifactId> |
Tatu Saloranta | b6e6e57 | 2019-08-24 16:23:24 -0700 | [diff] [blame] | 130 | <executions> |
| 131 | <execution> |
| 132 | <goals> |
| 133 | <goal>prepare-agent</goal> |
| 134 | </goals> |
| 135 | </execution> |
| 136 | <!-- attached to Maven test phase --> |
| 137 | <execution> |
| 138 | <id>report</id> |
| 139 | <phase>test</phase> |
| 140 | <goals> |
| 141 | <goal>report</goal> |
| 142 | </goals> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
| 146 | |
Tatu Saloranta | f9ea979 | 2017-09-09 17:27:52 -0700 | [diff] [blame] | 147 | <!-- Important: enable enforcer plug-in: --> |
| 148 | <plugin> |
| 149 | <artifactId>maven-enforcer-plugin</artifactId> |
| 150 | <executions> <!-- or? combine.children="merge"> --> |
| 151 | <execution> |
| 152 | <id>enforce-properties</id> |
| 153 | <phase>validate</phase> |
| 154 | <goals><goal>enforce</goal></goals> |
| 155 | </execution> |
| 156 | </executions> |
| 157 | </plugin> |
| 158 | |
Tatu Saloranta | 4294ffc | 2014-09-03 22:40:45 -0700 | [diff] [blame] | 159 | <plugin> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 160 | <groupId>org.apache.maven.plugins</groupId> |
Cowtowncoder | 044bb5a | 2014-10-03 10:50:17 -0700 | [diff] [blame] | 161 | <version>${version.plugin.surefire}</version> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 162 | <artifactId>maven-surefire-plugin</artifactId> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 163 | <configuration> |
Michael Spiegel | e7c5420 | 2014-11-26 20:40:21 -0500 | [diff] [blame] | 164 | <classpathDependencyExcludes> |
Michael Spiegel | 95f3fab | 2014-11-29 10:51:55 -0500 | [diff] [blame] | 165 | <exclude>javax.measure:jsr-275</exclude> |
Michael Spiegel | e7c5420 | 2014-11-26 20:40:21 -0500 | [diff] [blame] | 166 | </classpathDependencyExcludes> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 167 | <excludes> |
| 168 | <exclude>com/fasterxml/jackson/failing/*.java</exclude> |
| 169 | </excludes> |
Tatu Saloranta | 2a93c3c | 2019-11-26 13:25:54 -0800 | [diff] [blame] | 170 | <!-- 26-Nov-2019, tatu: moar parallelism! Per-class basis, safe, efficient enough |
| 171 | ... although not 100% sure this makes much difference TBH |
| 172 | --> |
| 173 | <threadCount>4</threadCount> |
| 174 | <parallel>classes</parallel> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 175 | </configuration> |
| 176 | </plugin> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 177 | |
Tatu Saloranta | f9ea979 | 2017-09-09 17:27:52 -0700 | [diff] [blame] | 178 | <!-- parent definitions should be ok, but need to add more links --> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 179 | <plugin> |
| 180 | <groupId>org.apache.maven.plugins</groupId> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 181 | <artifactId>maven-javadoc-plugin</artifactId> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 182 | <configuration> |
Tatu Saloranta | f9ea979 | 2017-09-09 17:27:52 -0700 | [diff] [blame] | 183 | <links combine.children="append"> |
Tatu Saloranta | 8eb15fd | 2020-04-28 16:46:24 -0700 | [diff] [blame] | 184 | <link>http://fasterxml.github.com/jackson-annotations/javadoc/2.12</link> |
| 185 | <link>http://fasterxml.github.com/jackson-core/javadoc/2.12</link> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 186 | </links> |
| 187 | </configuration> |
Tatu Saloranta | d063daa | 2012-02-24 16:09:04 -0800 | [diff] [blame] | 188 | </plugin> |
Tatu Saloranta | fe45e71 | 2013-12-13 20:09:00 -0800 | [diff] [blame] | 189 | |
Tatu Saloranta | f9ea979 | 2017-09-09 17:27:52 -0700 | [diff] [blame] | 190 | <!-- settings are fine, but needed to trigger execution! --> |
Tatu Saloranta | fe45e71 | 2013-12-13 20:09:00 -0800 | [diff] [blame] | 191 | <plugin> |
Ben Gertzfield | 5780f88 | 2013-01-03 17:04:21 -0800 | [diff] [blame] | 192 | <groupId>com.google.code.maven-replacer-plugin</groupId> |
Ben Gertzfield | 66a12b6 | 2013-01-04 12:01:07 -0800 | [diff] [blame] | 193 | <artifactId>replacer</artifactId> |
Ben Gertzfield | 5780f88 | 2013-01-03 17:04:21 -0800 | [diff] [blame] | 194 | </plugin> |
Tatu Saloranta | 975e360 | 2016-10-18 14:10:20 -0700 | [diff] [blame] | 195 | |
Tatu Saloranta | 26ce3dc | 2019-03-08 21:25:43 -0800 | [diff] [blame] | 196 | <!-- 04-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8 |
| 197 | will have to use `moduleInfoFile` as anything else requires JDK 9+ |
| 198 | --> |
Tatu Saloranta | 975e360 | 2016-10-18 14:10:20 -0700 | [diff] [blame] | 199 | <plugin> |
Tatu Saloranta | 26ce3dc | 2019-03-08 21:25:43 -0800 | [diff] [blame] | 200 | <groupId>org.moditect</groupId> |
| 201 | <artifactId>moditect-maven-plugin</artifactId> |
Tatu Saloranta | 975e360 | 2016-10-18 14:10:20 -0700 | [diff] [blame] | 202 | </plugin> |
Tatu Saloranta | 5ba72df | 2020-05-22 17:34:10 -0700 | [diff] [blame] | 203 | |
| 204 | <plugin> |
| 205 | <groupId>de.jjohannes</groupId> |
| 206 | <artifactId>gradle-module-metadata-maven-plugin</artifactId> |
| 207 | </plugin> |
| 208 | </plugins> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 209 | </build> |
Tatu Saloranta | 65c8369 | 2011-12-24 18:15:07 -0800 | [diff] [blame] | 210 | |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 211 | <profiles> |
Tatu Saloranta | 9af5904 | 2012-02-19 00:03:55 -0800 | [diff] [blame] | 212 | <profile> |
| 213 | <id>release</id> |
| 214 | <properties> |
| 215 | <maven.test.skip>true</maven.test.skip> |
| 216 | <skipTests>true</skipTests> |
| 217 | </properties> |
simonetripodi | 451776a | 2012-08-24 14:21:58 +0200 | [diff] [blame] | 218 | </profile> |
Youri Bonnaffé | 03b29e9 | 2020-07-03 02:05:14 +0200 | [diff] [blame] | 219 | <profile> |
| 220 | <!-- Build Record tests using Java 14 if JDK is available --> |
| 221 | <id>java14+</id> |
| 222 | <activation> |
| 223 | <jdk>[14,</jdk> |
| 224 | </activation> |
| 225 | <build> |
| 226 | <plugins> |
| 227 | <plugin> |
| 228 | <groupId>org.codehaus.mojo</groupId> |
| 229 | <artifactId>build-helper-maven-plugin</artifactId> |
| 230 | <executions> |
| 231 | <execution> |
| 232 | <id>add-test-source</id> |
| 233 | <phase>generate-test-sources</phase> |
| 234 | <goals> |
| 235 | <goal>add-test-source</goal> |
| 236 | </goals> |
| 237 | <configuration> |
| 238 | <sources> |
| 239 | <source>src/test-jdk14/java</source> |
| 240 | </sources> |
| 241 | </configuration> |
| 242 | </execution> |
| 243 | </executions> |
| 244 | </plugin> |
| 245 | <plugin> |
| 246 | <groupId>org.apache.maven.plugins</groupId> |
| 247 | <artifactId>maven-compiler-plugin</artifactId> |
| 248 | <inherited>true</inherited> |
| 249 | <configuration> |
| 250 | <optimize>true</optimize> |
| 251 | <!-- Enable Java 14+ for all sources so that Intellij picks the right language level --> |
| 252 | <source>14</source> |
| 253 | <release>14</release> |
| 254 | <compilerArgs> |
| 255 | <arg>-parameters</arg> |
| 256 | <arg>--enable-preview</arg> |
| 257 | </compilerArgs> |
| 258 | </configuration> |
| 259 | </plugin> |
| 260 | <plugin> |
| 261 | <groupId>org.apache.maven.plugins</groupId> |
| 262 | <artifactId>maven-surefire-plugin</artifactId> |
| 263 | <configuration> |
| 264 | <argLine>--enable-preview</argLine> |
| 265 | </configuration> |
| 266 | </plugin> |
| 267 | </plugins> |
| 268 | </build> |
| 269 | </profile> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 270 | </profiles> |
Tatu Saloranta | 90c4352 | 2011-12-22 23:25:27 -0800 | [diff] [blame] | 271 | |
| 272 | </project> |