Extract adpater READMEs into docs subdir

This commit is contained in:
Dave Syer
2018-06-04 09:22:34 +01:00
parent 9dc569837a
commit 047aabcbdd
8 changed files with 259 additions and 12 deletions

48
pom.xml
View File

@@ -177,6 +177,54 @@
</pluginManagement>
</build>
<profiles>
<profile>
<id>docs</id>
<properties>
<adapters.path>${main.basedir}/spring-cloud-function-adapters</adapters.path>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>adapters</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<java classname="org.jruby.Main" failonerror="yes">
<arg value="${docs.resources.dir}/ruby/generate_readme.sh"/>
<arg value="-o"/>
<arg value="${adapters.path}/spring-cloud-function-adapter-aws/README.adoc"/>
<arg value="${basedir}/src/main/asciidoc/adapters/aws-readme.adoc"/>
</java>
<java classname="org.jruby.Main" failonerror="yes">
<arg value="${docs.resources.dir}/ruby/generate_readme.sh"/>
<arg value="-o"/>
<arg value="${adapters.path}/spring-cloud-function-adapter-azure/README.adoc"/>
<arg value="${basedir}/src/main/asciidoc/adapters/azure-readme.adoc"/>
</java>
<java classname="org.jruby.Main" failonerror="yes">
<arg value="${docs.resources.dir}/ruby/generate_readme.sh"/>
<arg value="-o"/>
<arg value="${adapters.path}/spring-cloud-function-adapter-openwhisk/README.adoc"/>
<arg value="${basedir}/src/main/asciidoc/adapters/openwhisk-readme.adoc"/>
</java>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>spring-snapshots</id>