| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2024 Contributors to the Eclipse Foundation |
| All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| <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>org.eclipse.ee4j</groupId> |
| <artifactId>project</artifactId> |
| <version>1.0.9</version> |
| </parent> |
| |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta-annotations-tck</artifactId> |
| <version>3.0.0</version> |
| <packaging>jar</packaging> |
| |
| <name>Annotations-TCK</name> |
| <description>Common Annotations TCK</description> |
| |
| <properties> |
| <jakarta.annotations-api.version>3.0.0</jakarta.annotations-api.version> |
| <junit.jupiter.version>5.10.2</junit.jupiter.version> |
| |
| <maven.compiler.release>17</maven.compiler.release> |
| <maven.compiler.testRelease>${maven.compiler.release}</maven.compiler.testRelease> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| <version>${jakarta.annotations-api.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <version>${junit.jupiter.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>3.6.3</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>3.3.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.12.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>3.6.0</version> |
| </plugin> |
| <plugin> |
| <groupId>jakarta.tck</groupId> |
| <artifactId>sigtest-maven-plugin</artifactId> |
| <version>2.2</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <finalName>${bundle-name}-${project.version}</finalName> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>LICENSE_${license}.md</include> |
| <include>com/</include> |
| <include>**/*sig*/**</include> |
| </includes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <doclint>none</doclint> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>distribution</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/assembly.xml</descriptor> |
| </descriptors> |
| <escapeString>\</escapeString> |
| <appendAssemblyId>false</appendAssemblyId> |
| <finalName>${bundle-name}-${project.version}</finalName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>EFTL</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <properties> |
| <bundle-name>jakarta-annotations-tck</bundle-name> |
| <license>EFTL</license> |
| </properties> |
| </profile> |
| <profile> |
| <id>EPL</id> |
| <properties> |
| <bundle-name>annotations-tck</bundle-name> |
| <license>EPL</license> |
| </properties> |
| </profile> |
| <profile> |
| <id>record-signature</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <bundle-name>jakarta-annotations-tck</bundle-name> |
| <license>EFTL</license> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>jakarta.tck</groupId> |
| <artifactId>sigtest-maven-plugin</artifactId> |
| <configuration> |
| <sigfile>${project.build.directory}/jakarta.annotation.sig_${project.version}</sigfile> |
| <packages>jakarta.annotation,jakarta.annotation.security,jakarta.annotation.sql</packages> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |