From a744025d26ebf9a99f0e80581856d909fd67ba75 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 25 May 2020 13:26:55 +0200 Subject: [PATCH] Disabling docs zip publishing for all modules other than the docs module --- README.adoc | 15 +++++++-------- docs/pom.xml | 3 +++ pom.xml | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.adoc b/README.adoc index 6a66bdce..2da0f5a0 100644 --- a/README.adoc +++ b/README.adoc @@ -282,22 +282,21 @@ approach of generating documentation just add these plugins to your `docs` modul org.apache.maven.plugins maven-antrun-plugin <6> - - org.codehaus.mojo - build-helper-maven-plugin <7> - + + maven-deploy-plugin <7> + ---- -<2> This plugin downloads sets up all the git information of the project +<1> This plugin downloads sets up all the git information of the project <2> This plugin downloads the resources of the `spring-cloud-build-docs` module <3> This plugin unpacks the resources of the `spring-cloud-build-docs` module <4> This plugin generates an `adoc` file with all the configuration properties from the classpath <5> This plugin is required to parse the Asciidoctor documentation <6> This plugin is required to copy resources into proper final destinations and to generate main README.adoc and to assert that no files use unresolved links -<7> This plugin ensures that the generated zip docs are attached as an artifact and will get published +<7> This plugin ensures that the generated zip docs will get published IMPORTANT: The order of plugin declaration is important! @@ -344,8 +343,8 @@ Spring Cloud Build Docs comes with a set of attributes for asciidoctor that you ${version-type}@ - ${docs-url}@ - ${raw-docs-url}@ + https://docs.spring.io/${docs.main}/${project.version}@ + ${github-raw}@ ${project.version}@ ${docs.main}@ diff --git a/docs/pom.xml b/docs/pom.xml index 50f5da67..c581773e 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -246,6 +246,9 @@ docs + + deploy + diff --git a/pom.xml b/pom.xml index 238b10d0..8652262d 100644 --- a/pom.xml +++ b/pom.xml @@ -112,6 +112,7 @@ 2.7 repo.spring.io https://repo.spring.io/libs-snapshot-local + none @@ -1381,7 +1382,7 @@ upload-docs-zip - deploy + ${upload-docs-zip.phase} deploy-file