Skip to content

Commit cd86d84

Browse files
committed
Add the ability to disable configuration properties in docs pom
1 parent 42f30a9 commit cd86d84

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
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: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,32 @@
2121
<!-- Don't upload docs jar to central / repo.spring.io -->
2222
<maven-deploy-plugin-default.phase>none</maven-deploy-plugin-default.phase>
2323
</properties>
24-
<dependencies>
25-
<dependency>
26-
<groupId>${project.groupId}</groupId>
27-
<artifactId>spring-cloud-starter-kubernetes-fabric8</artifactId>
28-
</dependency>
29-
<dependency>
30-
<groupId>${project.groupId}</groupId>
31-
<artifactId>spring-cloud-starter-kubernetes-fabric8-all</artifactId>
32-
</dependency>
33-
<dependency>
34-
<groupId>${project.groupId}</groupId>
35-
<artifactId>spring-cloud-starter-kubernetes-fabric8-config</artifactId>
36-
</dependency>
37-
</dependencies>
3824
<build>
3925
<sourceDirectory>src/main/asciidoc</sourceDirectory>
4026
</build>
4127
<profiles>
28+
<profile>
29+
<id>enable-configuration-properties</id>
30+
<activation>
31+
<property>
32+
<name>!disableConfigurationProperties</name>
33+
</property>
34+
</activation>
35+
<dependencies>
36+
<dependency>
37+
<groupId>${project.groupId}</groupId>
38+
<artifactId>spring-cloud-starter-kubernetes-fabric8</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>${project.groupId}</groupId>
42+
<artifactId>spring-cloud-starter-kubernetes-fabric8-all</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>${project.groupId}</groupId>
46+
<artifactId>spring-cloud-starter-kubernetes-fabric8-config</artifactId>
47+
</dependency>
48+
</dependencies>
49+
</profile>
4250
<profile>
4351
<id>docs</id>
4452
<build>

0 commit comments

Comments
 (0)