mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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:
parent
843a618c83
commit
585aed8f8f
@ -734,4 +734,56 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</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>
|
</project>
|
||||||
|
Loading…
Reference in New Issue
Block a user