Add generated-snippets as output to test goal

The generated snippets were not declared as an output to the
`spring-boot-actuator-autoconfigure` test goal so when the test was
pulled from the cache, it did not contain the `generated-snippets`
directory. This directory is required as an input to the Asciidoctor
plugin.

See gh-22555
This commit is contained in:
Nelson Osacky 2020-07-24 17:46:53 +02:00 committed by Andy Wilkinson
parent 843a618c83
commit 585aed8f8f

View File

@ -734,4 +734,56 @@
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<outputs>
<directories>
<directory>
<name>generated-snippets</name>
<path>${project.basedir}/target/generated-snippets</path>
</directory>
</directories>
</outputs>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>asciidoctor-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-html-documentation</id>
<inputs>
<fileSets>
<fileSet>
<name>generated-snippets</name>
<paths>
<path>${project.basedir}/target/generated-snippets</path>
</paths>
<includes>
<include>**/*</include>
</includes>
<normalization>RELATIVE_PATH</normalization>
</fileSet>
</fileSets>
</inputs>
</execution>
</executions>
</plugin>
</plugins>
</gradleEnterprise>
</configuration>
</plugin>
</plugins>
</build>
</project>