Skip to content

Commit 9540638

Browse files
committed
Add the ability to disable configuration properties in docs pom
1 parent 0a402b3 commit 9540638

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav:
66
ext:
77
collector:
88
run:
9-
command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests
9+
command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests --DdisableConfigurationProperties
1010
local: true
1111
scan:
1212
dir: ./target/classes/antora-resources/

docs/pom.xml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,30 @@
2626
<micrometer-docs-generator.inclusionPattern>.*</micrometer-docs-generator.inclusionPattern>
2727
<micrometer-docs-generator.outputPath>${maven.multiModuleProjectDirectory}/docs/modules/ROOT/partials/</micrometer-docs-generator.outputPath>
2828
</properties>
29-
<dependencies>
30-
<dependency>
31-
<groupId>${project.groupId}</groupId>
32-
<artifactId>spring-cloud-starter-single-step-batch-job</artifactId>
33-
<version>${project.version}</version>
34-
</dependency>
35-
<dependency>
36-
<groupId>${project.groupId}</groupId>
37-
<artifactId>spring-cloud-starter-task</artifactId>
38-
<version>${project.version}</version>
39-
</dependency>
40-
</dependencies>
4129
<build>
4230
<sourceDirectory>src/main/asciidoc</sourceDirectory>
4331
</build>
4432
<profiles>
33+
<profile>
34+
<id>enable-configuration-properties</id>
35+
<activation>
36+
<property>
37+
<name>!disableConfigurationProperties</name>
38+
</property>
39+
</activation>
40+
<dependencies>
41+
<dependency>
42+
<groupId>${project.groupId}</groupId>
43+
<artifactId>spring-cloud-starter-single-step-batch-job</artifactId>
44+
<version>${project.version}</version>
45+
</dependency>
46+
<dependency>
47+
<groupId>${project.groupId}</groupId>
48+
<artifactId>spring-cloud-starter-task</artifactId>
49+
<version>${project.version}</version>
50+
</dependency>
51+
</dependencies>
52+
</profile>
4553
<profile>
4654
<id>docs</id>
4755
<build>

0 commit comments

Comments
 (0)