Merge pull request #22555 from runningcode

* gh-22555:
  Polish "Add generated-snippets as output to test goal"
  Add generated-snippets as output to test goal

Closes gh-22555
pull/22614/head
Andy Wilkinson 4 years ago
commit ebfa26e3ac

@ -248,13 +248,17 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<version>1.5.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<version>1.5.3</version>
<configuration>
<gradleEnterprise>
<plugins>

@ -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>

Loading…
Cancel
Save