Automate docs build with shared parent pom
This commit is contained in:
@@ -2,7 +2,7 @@ language: java
|
|||||||
before_install: git config user.name "$GIT_NAME" && git config user.email "$GIT_EMAIL"
|
before_install: git config user.name "$GIT_NAME" && git config user.email "$GIT_EMAIL"
|
||||||
&& git config credential.helper "store --file=.git/credentials" && echo "https://$GH_TOKEN:@github.com" > .git/credentials
|
&& git config credential.helper "store --file=.git/credentials" && echo "https://$GH_TOKEN:@github.com" > .git/credentials
|
||||||
install:
|
install:
|
||||||
- mvn install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
|
- mvn install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
|
||||||
- ./src/main/asciidoc/ghpages.sh
|
- ./src/main/asciidoc/ghpages.sh
|
||||||
script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true
|
script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true
|
||||||
env:
|
env:
|
||||||
|
|||||||
193
pom.xml
193
pom.xml
@@ -12,9 +12,9 @@
|
|||||||
<description>Spring Patform Cloudfoundry integration project</description>
|
<description>Spring Patform Cloudfoundry integration project</description>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-cloud-build</artifactId>
|
||||||
<version>1.1.5.RELEASE</version>
|
<version>1.0.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath /> <!-- lookup parent from repository -->
|
<relativePath /> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@@ -73,176 +73,29 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<java.version>1.7</java.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jruby</groupId>
|
|
||||||
<artifactId>jruby-complete</artifactId>
|
|
||||||
<version>1.7.12</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>readme</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<configuration>
|
|
||||||
<tasks>
|
|
||||||
<java classname="org.jruby.Main" failonerror="yes">
|
|
||||||
<arg value="${basedir}/src/main/ruby/generate_readme.sh" />
|
|
||||||
<arg value="-o" />
|
|
||||||
<arg value="${basedir}/README.adoc" />
|
|
||||||
</java>
|
|
||||||
</tasks>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
||||||
<version>1.5.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<configuration>
|
|
||||||
<sourceDocumentName>${project.artifactId}.adoc</sourceDocumentName>
|
|
||||||
<backend>html</backend>
|
|
||||||
<doctype>article</doctype>
|
|
||||||
<attributes>
|
|
||||||
<docinfo>true</docinfo>
|
|
||||||
<spring-cloud-version>${project.version}</spring-cloud-version>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>milestone</id>
|
<id>docs</id>
|
||||||
<distributionManagement>
|
<build>
|
||||||
<repository>
|
<plugins>
|
||||||
<id>repo.spring.io</id>
|
<plugin>
|
||||||
<name>Spring Milestone Repository</name>
|
<groupId>org.asciidoctor</groupId>
|
||||||
<url>https://repo.spring.io/libs-milestone-local</url>
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
||||||
</repository>
|
<inherited>false</inherited>
|
||||||
</distributionManagement>
|
</plugin>
|
||||||
</profile>
|
<plugin>
|
||||||
<profile>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<id>central</id>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<distributionManagement>
|
<inherited>false</inherited>
|
||||||
<snapshotRepository>
|
</plugin>
|
||||||
<id>sonatype-nexus-snapshots</id>
|
<plugin>
|
||||||
<name>Sonatype Nexus Snapshots</name>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
</snapshotRepository>
|
<inherited>false</inherited>
|
||||||
<repository>
|
</plugin>
|
||||||
<id>sonatype-nexus-staging</id>
|
</plugins>
|
||||||
<name>Nexus Release Repository</name>
|
</build>
|
||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>sign</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
<distributionManagement>
|
|
||||||
<!-- see 'staging' profile for dry-run deployment settings -->
|
|
||||||
<downloadUrl>http://www.springsource.com/download/community
|
|
||||||
</downloadUrl>
|
|
||||||
<site>
|
|
||||||
<id>spring-docs</id>
|
|
||||||
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-retry/docs/${project.version}
|
|
||||||
</url>
|
|
||||||
</site>
|
|
||||||
<repository>
|
|
||||||
<id>repo.spring.io</id>
|
|
||||||
<name>Spring Release Repository</name>
|
|
||||||
<url>https://repo.spring.io/libs-release-local</url>
|
|
||||||
</repository>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>repo.spring.io</id>
|
|
||||||
<name>Spring Snapshot Repository</name>
|
|
||||||
<url>https://repo.spring.io/libs-snapshot-local</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spring-snapshots</id>
|
|
||||||
<name>Spring Snapshots</name>
|
|
||||||
<url>http://repo.spring.io/snapshot</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>http://repo.spring.io/milestone</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>spring-releases</id>
|
|
||||||
<name>Spring Releases</name>
|
|
||||||
<url>http://repo.spring.io/release</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>spring-snapshots</id>
|
|
||||||
<name>Spring Snapshots</name>
|
|
||||||
<url>http://repo.spring.io/snapshot</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>http://repo.spring.io/milestone</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user