Build updates to support automated doc deployment
The Spring build infrastructure has the capabilities to deploy documentation automatically that it finds in Artifactory. This commit creates the required zip archive for that process. Resolves SCT-78
This commit is contained in:
9
pom.xml
9
pom.xml
@@ -122,12 +122,12 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<module>spring-cloud-task-dependencies</module>
|
<module>spring-cloud-task-dependencies</module>
|
||||||
<module>spring-cloud-task-core</module>
|
<module>spring-cloud-task-core</module>
|
||||||
<module>spring-cloud-task-docs</module>
|
|
||||||
<module>spring-cloud-task-batch</module>
|
<module>spring-cloud-task-batch</module>
|
||||||
<module>spring-cloud-task-stream</module>
|
<module>spring-cloud-task-stream</module>
|
||||||
<module>spring-cloud-starter-task</module>
|
<module>spring-cloud-starter-task</module>
|
||||||
<module>spring-cloud-task-samples</module>
|
<module>spring-cloud-task-samples</module>
|
||||||
<module>spring-cloud-task-integration-tests</module>
|
<module>spring-cloud-task-integration-tests</module>
|
||||||
|
<module>spring-cloud-task-docs</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -176,6 +176,13 @@
|
|||||||
<goal>jar</goal>
|
<goal>jar</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>aggregate</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>aggregate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -273,6 +273,44 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>docs-assembly</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>src/main/assembly/assemble.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|||||||
19
spring-cloud-task-docs/src/main/assembly/assemble.xml
Normal file
19
spring-cloud-task-docs/src/main/assembly/assemble.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<assembly>
|
||||||
|
<id>${project.build.finalName}</id>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<!--<baseDirectory>${project.basedir}</baseDirectory>-->
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>${project.build.directory}/../../target/site/apidocs</directory>
|
||||||
|
<outputDirectory>/apidocs</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>${project.build.directory}/docbook</directory>
|
||||||
|
<outputDirectory>/reference</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
||||||
Reference in New Issue
Block a user