Parametrized the configprops path

This commit is contained in:
Marcin Grzejszczak
2019-09-06 13:32:42 +02:00
parent 941340a588
commit f7f7f81534
2 changed files with 3 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ approach of generating documentation just add these plugins to your `docs` modul
IMPORTANT: The order of plugin declaration is important!
In order for the build to generate the `adoc` file with all your configuration properties, your `docs` module should contain all the dependencies on the classpath, that you would want to scan for configuration properties. The file will be output to `${docsModule}/src/main/asciidoc/configprops.adoc` file.
In order for the build to generate the `adoc` file with all your configuration properties, your `docs` module should contain all the dependencies on the classpath, that you would want to scan for configuration properties. The file will be output to `${docsModule}/src/main/asciidoc/_configprops.adoc` file.
Spring Cloud Build Docs comes with a set of attributes for asciidoctor that you can reuse.

View File

@@ -98,6 +98,7 @@
<disable.nohttp.checks>true</disable.nohttp.checks>
<antelopetasks.version>3.2.10</antelopetasks.version>
<ant-nodeps.version>1.8.1</ant-nodeps.version>
<configprops.path>${project.basedir}/src/main/asciidoc/_configprops.adoc</configprops.path>
</properties>
<dependencyManagement>
<dependencies>
@@ -1022,7 +1023,7 @@
</includePluginDependencies>
<mainClass>org.springframework.cloud.internal.Main</mainClass>
<arguments>
<argument>${project.basedir}/src/main/asciidoc/configprops.adoc</argument>
<argument>${configprops.path}</argument>
</arguments>
</configuration>
</plugin>