Generate rest documentation in compile phase

Update `spring-boot-actuator-docs` to generate rest documentation in
the compile phase.
This commit is contained in:
Phillip Webb
2015-08-05 17:26:24 -07:00
parent 9a53707014
commit 1fba24ffe4
7 changed files with 105 additions and 24 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.hypermedia.test;
package org.springframework.boot.actuate.hypermedia;
import groovy.text.Template;
import groovy.text.TemplateEngine;
@@ -134,7 +134,7 @@ public class EndpointDocumentation {
PrintWriter writer = new PrintWriter(file, "UTF-8");
try {
Template template = this.templates.createTemplate(new File(
"src/test/resources/templates/endpoints.adoc.tpl"));
"src/restdoc/resources/templates/endpoints.adoc.tpl"));
template.make(model).writeTo(writer);
}
finally {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.hypermedia.test;
package org.springframework.boot.actuate.hypermedia;
import groovy.text.TemplateEngine;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.hypermedia.test;
package org.springframework.boot.actuate.hypermedia;
import groovy.text.TemplateEngine;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.hypermedia.test;
package org.springframework.boot.actuate.hypermedia;
import groovy.text.GStringTemplateEngine;
import groovy.text.TemplateEngine;