Skip to content

Commit 3ec77a2

Browse files
committed
Add the ability to disable configuration properties in docs pom
1 parent dec24e0 commit 3ec77a2

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
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: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,28 @@
2525
<micrometer-docs-generator.inclusionPattern>.*</micrometer-docs-generator.inclusionPattern>
2626
<micrometer-docs-generator.outputPath>${maven.multiModuleProjectDirectory}/docs/modules/ROOT/partials/</micrometer-docs-generator.outputPath>
2727
</properties>
28-
<dependencies>
29-
<dependency>
30-
<groupId>${project.groupId}</groupId>
31-
<artifactId>spring-cloud-starter-gateway</artifactId>
32-
</dependency>
33-
<dependency>
34-
<groupId>${project.groupId}</groupId>
35-
<artifactId>spring-cloud-starter-gateway-mvc</artifactId>
36-
</dependency>
37-
</dependencies>
3828
<build>
3929
<sourceDirectory>src/main/asciidoc</sourceDirectory>
4030
</build>
4131
<profiles>
32+
<profile>
33+
<id>enable-configuration-properties</id>
34+
<activation>
35+
<property>
36+
<name>!disableConfigurationProperties</name>
37+
</property>
38+
</activation>
39+
<dependencies>
40+
<dependency>
41+
<groupId>${project.groupId}</groupId>
42+
<artifactId>spring-cloud-starter-gateway</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>${project.groupId}</groupId>
46+
<artifactId>spring-cloud-starter-gateway-mvc</artifactId>
47+
</dependency>
48+
</dependencies>
49+
</profile>
4250
<profile>
4351
<id>docs</id>
4452
<build>

0 commit comments

Comments
 (0)