David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
| 4 | Copyright (c) 2019 Contributors to the Eclipse Foundation. |
| 5 | |
| 6 | This program and the accompanying materials are made available under the |
| 7 | terms of the Eclipse Public License v. 2.0, which is available at |
| 8 | http://www.eclipse.org/legal/epl-2.0. |
| 9 | |
| 10 | This Source Code may also be made available under the following Secondary |
| 11 | Licenses when the conditions for such availability set forth in the |
| 12 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 13 | version 2 with the GNU Classpath Exception, which is available at |
| 14 | https://www.gnu.org/software/classpath/license.html. |
| 15 | |
| 16 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 17 | |
| 18 | --> |
| 19 | <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/maven-v4_0_0.xsd"> |
| 20 | <parent> |
Dmitry Kornilov | d6931b7 | 2019-08-01 12:27:57 +0200 | [diff] [blame] | 21 | <groupId>jakarta.annotation</groupId> |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 22 | <artifactId>ca-parent</artifactId> |
Eclipse Common Annotations Bot | cf4b97b | 2019-08-02 11:12:49 +0000 | [diff] [blame] | 23 | <version>1.3.6-SNAPSHOT</version> |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 24 | </parent> |
Dmitry Kornilov | ba44b9e | 2019-08-01 11:04:22 +0200 | [diff] [blame] | 25 | |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <artifactId>annotations-spec</artifactId> |
Dmitry Kornilov | d6931b7 | 2019-08-01 12:27:57 +0200 | [diff] [blame] | 28 | <version>1.3-SNAPSHOT</version> |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 29 | <packaging>pom</packaging> |
Raymond Augé | eea7978 | 2019-07-15 12:38:51 -0400 | [diff] [blame] | 30 | |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 31 | <name>Jakarta Annotations Specification</name> |
Raymond Augé | eea7978 | 2019-07-15 12:38:51 -0400 | [diff] [blame] | 32 | <description>Jakarta Annotations Specification</description> |
| 33 | |
| 34 | <url>https://projects.eclipse.org/projects/ee4j.ca</url> |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 35 | |
| 36 | <properties> |
| 37 | <site.output.dir>${project.build.directory}/staging</site.output.dir> |
| 38 | <maven.site.skip>true</maven.site.skip> |
| 39 | <asciidoctor.maven.plugin.version>1.5.7.1</asciidoctor.maven.plugin.version> |
| 40 | <asciidoctorj.version>1.6.2</asciidoctorj.version> |
| 41 | <asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version> |
| 42 | <jruby.version>9.2.6.0</jruby.version> |
| 43 | <!-- status: DRAFT, BETA, etc., or blank for final --> |
| 44 | <status>DRAFT</status> |
| 45 | <maven.build.timestamp.format>MMMM dd, yyyy</maven.build.timestamp.format> |
| 46 | <revisiondate>${maven.build.timestamp}</revisiondate> |
| 47 | </properties> |
| 48 | |
| 49 | <build> |
| 50 | <defaultGoal>package</defaultGoal> |
| 51 | <plugins> |
| 52 | <plugin> |
| 53 | <groupId>org.apache.maven.plugins</groupId> |
| 54 | <artifactId>maven-enforcer-plugin</artifactId> |
| 55 | <version>1.4.1</version> |
| 56 | <executions> |
| 57 | <execution> |
| 58 | <id>enforce-versions</id> |
| 59 | <goals> |
| 60 | <goal>enforce</goal> |
| 61 | </goals> |
| 62 | <configuration> |
| 63 | <rules> |
| 64 | <requireJavaVersion> |
Raymond Augé | eea7978 | 2019-07-15 12:38:51 -0400 | [diff] [blame] | 65 | <version>[1.8.0,)</version> |
| 66 | <message>You need JDK8 or higher</message> |
David Blevins | 8015a7f | 2019-07-15 02:26:28 -0700 | [diff] [blame] | 67 | </requireJavaVersion> |
| 68 | </rules> |
| 69 | </configuration> |
| 70 | </execution> |
| 71 | </executions> |
| 72 | </plugin> |
| 73 | <plugin> |
| 74 | <groupId>org.asciidoctor</groupId> |
| 75 | <artifactId>asciidoctor-maven-plugin</artifactId> |
| 76 | <version>${asciidoctor.maven.plugin.version}</version> |
| 77 | <dependencies> |
| 78 | <dependency> |
| 79 | <groupId>org.jruby</groupId> |
| 80 | <artifactId>jruby-complete</artifactId> |
| 81 | <version>${jruby.version}</version> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.asciidoctor</groupId> |
| 85 | <artifactId>asciidoctorj</artifactId> |
| 86 | <version>${asciidoctorj.version}</version> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.asciidoctor</groupId> |
| 90 | <artifactId>asciidoctorj-pdf</artifactId> |
| 91 | <version>${asciidoctorj.pdf.version}</version> |
| 92 | </dependency> |
| 93 | </dependencies> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>asciidoc-to-html</id> |
| 97 | <phase>generate-resources</phase> |
| 98 | <goals> |
| 99 | <goal>process-asciidoc</goal> |
| 100 | </goals> |
| 101 | <configuration> |
| 102 | <backend>html5</backend> |
| 103 | <outputFile>${project.build.directory}/generated-docs/annotations-spec-${project.version}.html</outputFile> |
| 104 | <attributes> |
| 105 | <doctype>book</doctype> |
| 106 | <status>${status}</status> |
| 107 | <data-uri /> |
| 108 | <icons>font</icons> |
| 109 | <toc>left</toc> |
| 110 | <icons>font</icons> |
| 111 | <sectanchors>true</sectanchors> |
| 112 | <idprefix /> |
| 113 | <idseparator>-</idseparator> |
| 114 | <docinfo1>true</docinfo1> |
| 115 | </attributes> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | <execution> |
| 119 | <id>asciidoc-to-pdf</id> |
| 120 | <phase>generate-resources</phase> |
| 121 | <goals> |
| 122 | <goal>process-asciidoc</goal> |
| 123 | </goals> |
| 124 | <configuration> |
| 125 | <backend>pdf</backend> |
| 126 | <outputFile>${project.build.directory}/generated-docs/annotations-spec-${project.version}.pdf</outputFile> |
| 127 | <attributes> |
| 128 | <pdf-stylesdir>${project.basedir}/src/main/theme</pdf-stylesdir> |
| 129 | <pdf-style>jakartaee</pdf-style> |
| 130 | <doctype>book</doctype> |
| 131 | <status>${status}</status> |
| 132 | <data-uri /> |
| 133 | <icons>font</icons> |
| 134 | <pagenums /> |
| 135 | <toc /> |
| 136 | <icons>font</icons> |
| 137 | <sectanchors>true</sectanchors> |
| 138 | <idprefix /> |
| 139 | <idseparator>-</idseparator> |
| 140 | <docinfo1>true</docinfo1> |
| 141 | <embedAssets>true</embedAssets> |
| 142 | </attributes> |
| 143 | </configuration> |
| 144 | </execution> |
| 145 | </executions> |
| 146 | <configuration> |
| 147 | <sourceDocumentName>annotations-spec.adoc</sourceDocumentName> |
| 148 | <sourceHighlighter>coderay</sourceHighlighter> |
| 149 | <attributes> |
| 150 | <revnumber>${project.version}</revnumber> |
| 151 | <revremark>${status}</revremark> |
| 152 | <revdate>${revisiondate}</revdate> |
| 153 | </attributes> |
| 154 | </configuration> |
| 155 | |
| 156 | </plugin> |
| 157 | <plugin> |
| 158 | <groupId>org.apache.maven.plugins</groupId> |
| 159 | <artifactId>maven-release-plugin</artifactId> |
| 160 | <version>2.5.2</version> |
| 161 | <configuration> |
| 162 | <mavenExecutorId>forked-path</mavenExecutorId> |
| 163 | <useReleaseProfile>false</useReleaseProfile> |
| 164 | <arguments>${release.arguments}</arguments> |
| 165 | </configuration> |
| 166 | <dependencies> |
| 167 | <dependency> |
| 168 | <groupId>org.apache.maven.scm</groupId> |
| 169 | <artifactId>maven-scm-provider-gitexe</artifactId> |
| 170 | <version>1.9.4</version> |
| 171 | </dependency> |
| 172 | </dependencies> |
| 173 | </plugin> |
| 174 | |
| 175 | <!-- |
| 176 | This is the rule that builds the zip file for download. |
| 177 | --> |
| 178 | <plugin> |
| 179 | <groupId>org.apache.maven.plugins</groupId> |
| 180 | <artifactId>maven-assembly-plugin</artifactId> |
| 181 | <version>3.1.1</version> |
| 182 | <inherited>false</inherited> |
| 183 | <executions> |
| 184 | <execution> |
| 185 | <phase>package</phase> |
| 186 | <goals> |
| 187 | <goal>single</goal> |
| 188 | </goals> |
| 189 | <configuration> |
| 190 | <appendAssemblyId>false</appendAssemblyId> |
| 191 | <descriptors> |
| 192 | <descriptor>assembly.xml</descriptor> |
| 193 | </descriptors> |
| 194 | </configuration> |
| 195 | </execution> |
| 196 | </executions> |
| 197 | </plugin> |
| 198 | </plugins> |
| 199 | </build> |
| 200 | </project> |