Skip to content

Commit

Permalink
Setup documentation for test extensions. (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chessray authored Sep 25, 2023
1 parent fba0003 commit e0422f9
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docs/src/docs/asciidoc/chapter-2-set-up.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ For Maven based projects add the following to your POM file in order to use MapS
----
====

If you wish to use the <<testExtensions,test extensions>>, additionally add the following:

====
[source, xml, linenums]
[subs="verbatim,attributes"]
----
...
<dependencies>
<dependency>
<groupId>org.mapstruct.extensions.spring</groupId>
<artifactId>mapstruct-spring-test-extensions</artifactId>
<scope>test</scope>
<version>${org.mapstruct.extensions.spring.version}</version>
</dependency>
</dependencies>
...
----
====

[TIP]
====
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].
Expand Down Expand Up @@ -96,6 +115,20 @@ dependencies {
...
----
====
And for <<testExtensions,test extensions>>:
====
[source, groovy, linenums]
[subs="verbatim,attributes"]
----
...
dependencies {
...
testImplementation "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
}
...
----
====
.Gradle configuration (3.4 - 5.1)
====
[source, groovy, linenums]
Expand Down Expand Up @@ -123,6 +156,20 @@ dependencies {
...
----
====
And for <<testExtensions,test extensions>>:
====
[source, groovy, linenums]
[subs="verbatim,attributes"]
----
...
dependencies {
...
testImplementation "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
}
...
----
====
.Gradle (3.3 and older)
====
[source, groovy, linenums]
Expand Down Expand Up @@ -150,6 +197,20 @@ dependencies {
...
----
====
And for <<testExtensions,test extensions>>:
====
[source, groovy, linenums]
[subs="verbatim,attributes"]
----
...
dependencies {
...
testCompile "org.mapstruct.extensions.spring:mapstruct-spring-test-extensions:${mapstructSpringExtensionsVersion}"
}
...
----
====


=== Apache Ant
Expand Down

0 comments on commit e0422f9

Please sign in to comment.