Skip to content

Commit bbd0210

Browse files
committed
DATAMONGO-2161 - Simplify reference documentation setup.
Remove Asciidoctor plugin from all module builds and run asciidoctor only in distribution build.
1 parent 4a1a9a7 commit bbd0210

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -137,25 +137,6 @@
137137
<module>spring-data-mongodb-benchmarks</module>
138138
</modules>
139139
</profile>
140-
141-
<profile>
142-
<id>distribute</id>
143-
<build>
144-
<plugins>
145-
<plugin>
146-
<groupId>org.asciidoctor</groupId>
147-
<artifactId>asciidoctor-maven-plugin</artifactId>
148-
<configuration>
149-
<attributes>
150-
<mongo-reactivestreams>${mongo.reactivestreams}</mongo-reactivestreams>
151-
<reactor>${reactor}</reactor>
152-
</attributes>
153-
</configuration>
154-
</plugin>
155-
</plugins>
156-
</build>
157-
</profile>
158-
159140
</profiles>
160141

161142
<dependencies>

spring-data-mongodb-distribution/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34

45
<modelVersion>4.0.0</modelVersion>
56

@@ -35,8 +36,15 @@
3536
<plugin>
3637
<groupId>org.asciidoctor</groupId>
3738
<artifactId>asciidoctor-maven-plugin</artifactId>
39+
<configuration>
40+
<attributes>
41+
<mongo-reactivestreams>${mongo.reactivestreams}</mongo-reactivestreams>
42+
<reactor>${reactor}</reactor>
43+
</attributes>
44+
</configuration>
3845
</plugin>
3946
</plugins>
47+
4048
</build>
4149

4250
</project>

src/main/asciidoc/index.adoc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@
22
Mark Pollack; Thomas Risberg; Oliver Gierke; Costin Leau; Jon Brisbin; Thomas Darimont; Christoph Strobl; Mark Paluch; Jay Bryant
33
:revnumber: {version}
44
:revdate: {localdate}
5-
:toc:
6-
:toc-placement!:
7-
:linkcss:
8-
:doctype: book
9-
:docinfo: shared
10-
:source-highlighter: prettify
11-
:icons: font
12-
:imagesdir: images
135
ifdef::backend-epub3[:front-cover-image: image:epub-cover.png[Front Cover,1050,1600]]
14-
:spring-data-commons-docs: ../../../../spring-data-commons/src/main/asciidoc
6+
:spring-data-commons-docs: ../../../../../spring-data-commons/src/main/asciidoc
157

168
(C) 2008-2018 The original authors.
179

0 commit comments

Comments
 (0)