<!--It fails with spring-restdocs-core from spring-restdocs-restassured-->

<dependency>

<groupId>org.springframework.restdocs</groupId>

<artifactId>spring-restdocs-core</artifactId>

<version>${spring.restdocs.core.version}</version>

<scope>test</scope>

</dependency>

<dependency>

<groupId>com.github.stefanbirkner</groupId>

<artifactId>system-rules</artifactId>

<version>${system.rules.version}</version>

<scope>test</scope>

</dependency>

</dependencies>

I had to explicitly add org.springframework.restdocs:spring-restdocs-core with version 1.1.0.RELEASE because the transitive included one with version 1.0.1.RELEASE caused the following problems:

org.springframework.restdocs.RestDocumentation does not implement org.springframework.restdocs.RestDocumentationContextProvider

org.springframework.restdocs.restassured.RestAssuredRestDocumentation#documentationConfiguration() does not compile when an org.springframework.restdocs.RestDocumentation instance is sent as its parameter:

I had to use org.springframework.restdocs.JUnitRestDocumentation because org.springframework.restdocs.RestDocumentation is deprecated in org.springframework.restdocs:spring-restdocs-core with version 1.1.0.RELEASE.