Skip to content

Commit 86bf029

Browse files
committed
Add the ability to disable configuration properties generation
1 parent fdf3ed9 commit 86bf029

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
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: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,7 @@
2525
<groovy.version>4.0.6</groovy.version>
2626
<generate-adoc-resource.phase>process-classes</generate-adoc-resource.phase>
2727
</properties>
28-
29-
<dependencies>
30-
<dependency>
31-
<groupId>${project.groupId}</groupId>
32-
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
33-
</dependency>
34-
<dependency>
35-
<groupId>${project.groupId}</groupId>
36-
<artifactId>spring-cloud-starter-contract-verifier</artifactId>
37-
</dependency>
38-
<dependency>
39-
<groupId>org.springframework.amqp</groupId>
40-
<artifactId>spring-amqp</artifactId>
41-
</dependency>
42-
<dependency>
43-
<groupId>com.fasterxml.jackson.module</groupId>
44-
<artifactId>jackson-module-jsonSchema</artifactId>
45-
<version>${jackson-module-jsonSchema.version}</version>
46-
</dependency>
47-
</dependencies>
28+
4829
<build>
4930
<plugins>
5031
<plugin>
@@ -184,5 +165,32 @@
184165
<generate-adoc-resource.phase>none</generate-adoc-resource.phase>
185166
</properties>
186167
</profile>
168+
<profile>
169+
<id>enable-configuration-properties</id>
170+
<activation>
171+
<property>
172+
<name>!disableConfigurationProperties</name>
173+
</property>
174+
</activation>
175+
<dependencies>
176+
<dependency>
177+
<groupId>${project.groupId}</groupId>
178+
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
179+
</dependency>
180+
<dependency>
181+
<groupId>${project.groupId}</groupId>
182+
<artifactId>spring-cloud-starter-contract-verifier</artifactId>
183+
</dependency>
184+
<dependency>
185+
<groupId>org.springframework.amqp</groupId>
186+
<artifactId>spring-amqp</artifactId>
187+
</dependency>
188+
<dependency>
189+
<groupId>com.fasterxml.jackson.module</groupId>
190+
<artifactId>jackson-module-jsonSchema</artifactId>
191+
<version>${jackson-module-jsonSchema.version}</version>
192+
</dependency>
193+
</dependencies>
194+
</profile>
187195
</profiles>
188196
</project>

0 commit comments

Comments
 (0)