blob: f03e353bf6e42d4c84eb60a627d33f23f2337398 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fasterxml.jackson</groupId>
<!-- this is one of few Jackson modules that depends on parent and NOT jackson-bom -->
<artifactId>jackson-parent</artifactId>
<version>2.10.0-SNAPSHOT</version>
</parent>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<name>Jackson-annotations</name>
<version>2.10.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<description>Core annotations used for value types, used by Jackson data binding package.
</description>
<inceptionYear>2008</inceptionYear>
<url>http://github.com/FasterXML/jackson</url>
<scm>
<connection>scm:git:git@github.com:FasterXML/jackson-annotations.git</connection>
<developerConnection>scm:git:git@github.com:FasterXML/jackson-annotations.git</developerConnection>
<url>http://github.com/FasterXML/jackson-annotations</url>
<tag>HEAD</tag>
</scm>
<properties>
<!-- 04-Mar-2019, tatu: Retain Java6/JDK1.6 compatibility for annotations for Jackson 2.x,
but use Moditect to get JDK9+ module info support; need newer bundle plugin as well
-->
<javac.src.version>1.6</javac.src.version>
<javac.target.version>1.6</javac.target.version>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<version.plugin.bundle>3.2.0</version.plugin.bundle>
<osgi.export>com.fasterxml.jackson.annotation.*;version=${project.version}</osgi.export>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 06-Sep-2017, tatu: Try to generate "automatic module name" -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<!-- IMPORTANT! Parent defines plenty of defaults; make sure to merge config -->
<configuration>
<!-- note: usually would use `packageVersion.package`, but not used with annotations pkg -->
<instructions combine.children="merge">
<Automatic-Module-Name>com.fasterxml.jackson.annotation</Automatic-Module-Name>
</instructions>
</configuration>
</plugin>
<plugin>
<!-- 08-Mar-2019, tatu: Would get these settings from `jackson-bom` except we
do not extend it so...
-->
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>src/moditect/module-info.java</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>