255 lines
9.2 KiB
XML
255 lines
9.2 KiB
XML
<?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>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-task-parent</artifactId>
|
|
<version>1.1.0.BUILD-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>spring-cloud-task-docs</artifactId>
|
|
<name>Spring Cloud Task Docs</name>
|
|
<description>Spring Cloud Task Docs</description>
|
|
<properties>
|
|
<main.basedir>${basedir}/..</main.basedir>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-task-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-task-batch</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-task-stream</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<profiles>
|
|
<profile>
|
|
<id>full</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
<version>1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>transform</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<transformationSets>
|
|
<transformationSet>
|
|
<dir>${project.build.directory}/external-resources</dir>
|
|
<stylesheet>src/main/xslt/dependencyVersions.xsl</stylesheet>
|
|
<fileMappers>
|
|
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
|
|
<targetExtension>.adoc</targetExtension>
|
|
</fileMapper>
|
|
</fileMappers>
|
|
<outputDir>${project.build.directory}/generated-resources</outputDir>
|
|
</transformationSet>
|
|
</transformationSets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<phase>prepare-package</phase>
|
|
<configuration>
|
|
<includeDependencySources>true</includeDependencySources>
|
|
<dependencySourceIncludes>
|
|
<dependencySourceInclude>${project.groupId}:*</dependencySourceInclude>
|
|
</dependencySourceIncludes>
|
|
<attach>false</attach>
|
|
<quiet>true</quiet>
|
|
<stylesheetfile>${basedir}/src/main/javadoc/spring-javadoc.css</stylesheetfile>
|
|
<links>
|
|
<link>http://docs.spring.io/spring-framework/docs/${spring-framework.version}/javadoc-api/</link>
|
|
<link>http://docs.spring.io/spring-shell/docs/current/api/</link>
|
|
</links>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>1.5.3</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj-pdf</artifactId>
|
|
<version>1.5.0-alpha.11</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<doctype>book</doctype>
|
|
<attributes>
|
|
<allow-uri-read>true</allow-uri-read>
|
|
<attribute-missing>warn</attribute-missing>
|
|
<project-version>${project.version}</project-version>
|
|
<project-artifactId>${project.artifactId}</project-artifactId>
|
|
<version-type-lowercase>${version-type-lowercase}</version-type-lowercase>
|
|
<docinfo>true</docinfo>
|
|
<spring-boot-version>${project.version}</spring-boot-version>
|
|
<spring-boot-docs-version>${project.version}</spring-boot-docs-version>
|
|
<spring-boot-repo>${spring-boot-repo}</spring-boot-repo>
|
|
<spring-docs-version>${spring.version}</spring-docs-version>
|
|
<spring-security-docs-version>${spring-security.version}</spring-security-docs-version>
|
|
<allow-uri-read>true</allow-uri-read>
|
|
<github-tag>${github-tag}</github-tag>
|
|
</attributes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-html5</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<attributes>
|
|
<toc2 />
|
|
</attributes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generate-pdf</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>pdf</backend>
|
|
<sourceHighlighter>rouge</sourceHighlighter>
|
|
<attributes>
|
|
<pdf-stylesdir>${project.basedir}/src/main/asciidoc-pdf-theme</pdf-stylesdir>
|
|
<pdf-style>custom</pdf-style>
|
|
<icons>font</icons>
|
|
<pagenums />
|
|
<toc />
|
|
<idprefix />
|
|
<idseparator>-</idseparator>
|
|
</attributes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>1.0b3</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant-nodeps</artifactId>
|
|
<version>1.8.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.tigris.antelope</groupId>
|
|
<artifactId>antelopetasks</artifactId>
|
|
<version>3.2.10</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>package-and-attach-docs-zip</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<zip destfile="${project.build.directory}/${project.artifactId}-${project.version}.zip">
|
|
<zipfileset src="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar" prefix="api" />
|
|
<zipfileset dir="${project.build.directory}/generated-docs" includes="index.pdf" fullpath="reference/pdf/spring-cloud-task-reference.pdf" />
|
|
<zipfileset dir="${project.build.directory}/generated-docs" prefix="reference/html">
|
|
<include name="index.html" />
|
|
<include name="images/**" />
|
|
</zipfileset>
|
|
<zipfileset dir="${project.build.directory}/generated-docs" prefix="reference/htmlsingle">
|
|
<include name="index.html" />
|
|
<include name="images/**" />
|
|
</zipfileset>
|
|
</zip>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>setup-maven-properties</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<exportAntProperties>true</exportAntProperties>
|
|
<target>
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
|
<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" />
|
|
<var name="version-type" value="${project.version}" />
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp=".*\.(.*)" replace="\1" />
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
|
|
<stringutil string="${version-type}" property="spring-boot-repo">
|
|
<lowercase />
|
|
</stringutil>
|
|
<var name="github-tag" value="v${project.version}" />
|
|
<propertyregex property="github-tag" override="true" input="${github-tag}" regexp=".*SNAPSHOT" replace="master" />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-zip</id>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${project.build.directory}/${project.artifactId}-${project.version}.zip</file>
|
|
<type>zip;zip.type=docs;zip.deployed=false</type>
|
|
</artifact>
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|