diff --git a/README.adoc b/README.adoc index b0b9ce74..ea497299 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,6 @@ -// Do not edit this file (e.g. go instead to docs/src/main/asciidoc) +// Do not edit this file (e.g. go instead to src/main/asciidoc) + +image:https://circleci.com/gh/spring-cloud/spring-cloud-build.svg?style=svg[link="https://travis-ci.org/spring-cloud/spring-cloud-build"] Spring Cloud Build is a common utility project for Spring Cloud to use for plugin and dependency management. @@ -26,9 +28,9 @@ $ mvn deploy -DaltReleaseDeploymentRepository=repo.spring.io::default::https://r and for jcenter use ---- +---- $ mvn deploy -DaltReleaseDeploymentRepository=bintray::default::https://api.bintray.com/maven/spring/jars/org.springframework.cloud:build ---- +---- and for Maven Central use @@ -48,7 +50,7 @@ follow the guidelines below. === Sign the Contributor License Agreement Before we accept a non-trivial patch or pull request we will need you to sign the -https://support.springsource.com/spring_committer_signup[contributor's agreement]. +https://cla.pivotal.io/sign/spring[Contributor License Agreement]. Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join the core team, and @@ -83,4 +85,47 @@ added after the original pull request but before a merge. other target branch in the main project). * When writing a commit message please follow http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[these conventions], if you are fixing an existing issue please add `Fixes gh-XXXX` at the end of the commit - message (where XXXX is the issue number). \ No newline at end of file + message (where XXXX is the issue number). + +== Reusing the documentation + +Spring Cloud Build publishes its `spring-cloud-build-docs` module that contains +helpful scripts (e.g. README generation ruby script) and css, xslt and images +for the Spring Cloud documentation. If you want to follow the same convention +approach of generating documentation just add these plugins to your `docs` module + +[source,xml] +---- + + + docs + + + + org.apache.maven.plugins + maven-dependency-plugin <1> + + + org.asciidoctor + asciidoctor-maven-plugin <2> + + + com.agilejava.docbkx + docbkx-maven-plugin <3> + + + org.apache.maven.plugins + maven-antrun-plugin <4> + false + + + + + +---- +<1> This plugin downloads and unpacks the resources of the `spring-cloud-build-docs` module +<2> This plugin is required to parse the Asciidoctor documentation +<3> This plugin converts the Asciidoctor documentation into single and multi page docs +<4> This plugin is required to copy resources into proper final destinations and to generate main README.adoc + +IMPORTANT: The order of plugin declaration is important! \ No newline at end of file diff --git a/docs/pom.xml b/docs/pom.xml index 0f884818..a55e1071 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -11,6 +11,13 @@ spring-cloud-build 2.0.0.BUILD-SNAPSHOT + + spring-cloud-build + + 1.2.x,2.0.x + ${basedir}/.. + ${basedir}/src/main + @@ -24,4 +31,25 @@ + + + docs + + + + org.asciidoctor + asciidoctor-maven-plugin + + + com.agilejava.docbkx + docbkx-maven-plugin + + + org.apache.maven.plugins + maven-antrun-plugin + + + + + diff --git a/docs/src/main/asciidoc/README.adoc b/docs/src/main/asciidoc/README.adoc index b2e0ac47..27561297 100644 --- a/docs/src/main/asciidoc/README.adoc +++ b/docs/src/main/asciidoc/README.adoc @@ -82,3 +82,5 @@ approach of generating documentation just add these plugins to your `docs` modul <2> This plugin is required to parse the Asciidoctor documentation <3> This plugin converts the Asciidoctor documentation into single and multi page docs <4> This plugin is required to copy resources into proper final destinations and to generate main README.adoc + +IMPORTANT: The order of plugin declaration is important! \ No newline at end of file diff --git a/pom.xml b/pom.xml index d8d0e448..9a4d87d1 100644 --- a/pom.xml +++ b/pom.xml @@ -27,14 +27,15 @@ ${java.version} ${basedir} ${project.artifactId} + 2.0.0.M3 2.0.0.BUILD-SNAPSHOT + ${project.build.directory}/build-docs jacoco reuseReports ${project.basedir}/../target/jacoco.exec java - 2.0.0.M3 @@ -459,6 +460,9 @@ limitations under the License. true + + false + spring-milestones @@ -485,6 +489,9 @@ limitations under the License. true + + false + spring-milestones @@ -494,6 +501,14 @@ limitations under the License. false + + spring-releases + Spring Releases + https://repo.spring.io/libs-release-local + + false + + @@ -659,7 +674,7 @@ limitations under the License. sources jar false - ${project.build.directory}/build-docs + ${docs.resources.dir} @@ -729,10 +744,10 @@ limitations under the License. ${docs.main}.xml true false - ${project.build.directory}/build-docs/docbook/xsl/pdf.xsl + ${docs.resources.dir}/docbook/xsl/pdf.xsl 1 1 - ${project.build.directory}/build-docs/docbook/xsl/xslthl-config.xml + ${docs.resources.dir}/docbook/xsl/xslthl-config.xml @@ -757,7 +772,7 @@ limitations under the License. prepare-package - ${project.build.directory}/build-docs/docbook/xsl/html-singlepage.xsl + ${docs.resources.dir}/docbook/xsl/html-singlepage.xsl ${basedir}/target/docbook/htmlsingle @@ -766,7 +781,7 @@ limitations under the License. - + @@ -783,7 +798,7 @@ limitations under the License. prepare-package - ${project.build.directory}/build-docs/docbook/xsl/html-multipage.xsl + ${docs.resources.dir}/docbook/xsl/html-multipage.xsl ${basedir}/target/docbook/html multi_ @@ -795,7 +810,7 @@ limitations under the License. - + @@ -859,7 +874,7 @@ limitations under the License. - + @@ -875,10 +890,10 @@ limitations under the License. - + - +