Fix inclusion of Gradle DSL snippets in plugin reference docs

Closes gh-16968
pull/16972/head
Andy Wilkinson 6 years ago
parent f3ebd71b29
commit 7713a7f33a

@ -53,7 +53,7 @@
<configuration> <configuration>
<url>https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip</url> <url>https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip</url>
<unpack>true</unpack> <unpack>true</unpack>
<outputDirectory>${refdocs.build.directory}</outputDirectory> <outputDirectory>${refdocs.build.directory}/asciidoc</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -99,7 +99,7 @@
<goal>copy-resources</goal> <goal>copy-resources</goal>
</goals> </goals>
<configuration> <configuration>
<outputDirectory>${refdocs.build.directory}</outputDirectory> <outputDirectory>${refdocs.build.directory}/asciidoc</outputDirectory>
<resources> <resources>
<resource> <resource>
<directory>src/main/asciidoc</directory> <directory>src/main/asciidoc</directory>
@ -108,6 +108,22 @@
</resources> </resources>
</configuration> </configuration>
</execution> </execution>
<execution>
<id>copy-gradle-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${refdocs.build.directory}/gradle</outputDirectory>
<resources>
<resource>
<directory>src/main/gradle</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
@ -315,6 +331,12 @@
<stylesdir>css/</stylesdir> <stylesdir>css/</stylesdir>
<stylesheet>style.css</stylesheet> <stylesheet>style.css</stylesheet>
</attributes> </attributes>
<logHandler>
<outputToConsole>true</outputToConsole>
<failIf>
<severity>DEBUG</severity>
</failIf>
</logHandler>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
@ -330,7 +352,7 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<sourceDirectory>${refdocs.build.directory}</sourceDirectory> <sourceDirectory>${refdocs.build.directory}/asciidoc</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName> <sourceDocumentName>index.adoc</sourceDocumentName>
<attributes> <attributes>
<github-tag>${github-tag}</github-tag> <github-tag>${github-tag}</github-tag>

Loading…
Cancel
Save