Skip to content

Commit e0422f9

Browse files
authored
Setup documentation for test extensions. (#96)
1 parent fba0003 commit e0422f9

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

docs/src/docs/asciidoc/chapter-2-set-up.asciidoc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ For Maven based projects add the following to your POM file in order to use MapS
5656
----
5757
====
5858

59+
If you wish to use the <<testExtensions,test extensions>>, additionally add the following:
60+
61+
====
62+
[source, xml, linenums]
63+
[subs="verbatim,attributes"]
64+
----
65+
...
66+
<dependencies>
67+
<dependency>
68+
<groupId>org.mapstruct.extensions.spring</groupId>
69+
<artifactId>mapstruct-spring-test-extensions</artifactId>
70+
<scope>test</scope>
71+
<version>${org.mapstruct.extensions.spring.version}</version>
72+
</dependency>
73+
</dependencies>
74+
...
75+
----
76+
====
77+
5978
[TIP]
6079
====
6180
If you are working with the Eclipse IDE, make sure to have a current version of the http://www.eclipse.org/m2e/[M2E plug-in].
@@ -96,6 +115,20 @@ dependencies {
96115
...
97116
----
98117
====
118+
And for <<testExtensions,test extensions>>:
119+
====
120+
[source, groovy, linenums]
121+
[subs="verbatim,attributes"]
122+
----
123+
...
124+
125+
dependencies {
126+
...
127+
testImplementation "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
128+
}
129+
...
130+
----
131+
====
99132
.Gradle configuration (3.4 - 5.1)
100133
====
101134
[source, groovy, linenums]
@@ -123,6 +156,20 @@ dependencies {
123156
...
124157
----
125158
====
159+
And for <<testExtensions,test extensions>>:
160+
====
161+
[source, groovy, linenums]
162+
[subs="verbatim,attributes"]
163+
----
164+
...
165+
166+
dependencies {
167+
...
168+
testImplementation "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
169+
}
170+
...
171+
----
172+
====
126173
.Gradle (3.3 and older)
127174
====
128175
[source, groovy, linenums]
@@ -150,6 +197,20 @@ dependencies {
150197
...
151198
----
152199
====
200+
And for <<testExtensions,test extensions>>:
201+
====
202+
[source, groovy, linenums]
203+
[subs="verbatim,attributes"]
204+
----
205+
...
206+
207+
dependencies {
208+
...
209+
testCompile "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
210+
}
211+
...
212+
----
213+
====
153214

154215

155216
=== Apache Ant

0 commit comments

Comments
 (0)