Skip to content

Commit 585aed8

Browse files
runningcodewilkinsona
authored andcommitted
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
1 parent 843a618 commit 585aed8

File tree

1 file changed

+52
-0
lines changed
  • spring-boot-project/spring-boot-actuator-autoconfigure

1 file changed

+52
-0
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,4 +734,56 @@
734734
</build>
735735
</profile>
736736
</profiles>
737+
<build>
738+
<plugins>
739+
<plugin>
740+
<groupId>com.gradle</groupId>
741+
<artifactId>gradle-enterprise-maven-extension</artifactId>
742+
<configuration>
743+
<gradleEnterprise>
744+
<plugins>
745+
<plugin>
746+
<artifactId>maven-surefire-plugin</artifactId>
747+
<executions>
748+
<execution>
749+
<id>default-test</id>
750+
<outputs>
751+
<directories>
752+
<directory>
753+
<name>generated-snippets</name>
754+
<path>${project.basedir}/target/generated-snippets</path>
755+
</directory>
756+
</directories>
757+
</outputs>
758+
</execution>
759+
</executions>
760+
</plugin>
761+
<plugin>
762+
<artifactId>asciidoctor-maven-plugin</artifactId>
763+
<executions>
764+
<execution>
765+
<id>generate-html-documentation</id>
766+
<inputs>
767+
<fileSets>
768+
<fileSet>
769+
<name>generated-snippets</name>
770+
<paths>
771+
<path>${project.basedir}/target/generated-snippets</path>
772+
</paths>
773+
<includes>
774+
<include>**/*</include>
775+
</includes>
776+
<normalization>RELATIVE_PATH</normalization>
777+
</fileSet>
778+
</fileSets>
779+
</inputs>
780+
</execution>
781+
</executions>
782+
</plugin>
783+
</plugins>
784+
</gradleEnterprise>
785+
</configuration>
786+
</plugin>
787+
</plugins>
788+
</build>
737789
</project>

0 commit comments

Comments
 (0)