From 57b114fa24f00bb3549ebcf163570108cfaffce1 Mon Sep 17 00:00:00 2001 From: Jonathan Bullock Date: Wed, 3 Mar 2021 23:46:26 +0000 Subject: [PATCH] Resolves #25, resolves #32 --- README.asciidoc | 124 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 122 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index a4e675c9..eaeb6e6d 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -1,11 +1,11 @@ = JBake Maven Plugin Jonathan Bullock -2020-09-12 +2021-03-03 :idprefix: image:https://maven-badges.herokuapp.com/maven-central/org.jbake/jbake-maven-plugin/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/org.jbake/jbake-maven-plugin"] -JBake Maven Plugin is a Maven plugin allowing you to integrate http://jbake.org[JBake] into your projects build. This is the official version published at +JBake Maven Plugin is a Maven plugin allowing you to integrate http://jbake.org[JBake] into your projects build. This is the official version published at the following Maven coordinates: ---- @@ -18,6 +18,126 @@ the following Maven coordinates: Special thanks must go to the original author of this plugin - https://github.com/aldrinleal[Aldrin Leal]. +== Usage + +To use JBake Maven Plugin in your build add the plugin into your pom.xml as shown below: + +---- + +... + + ... + + org.jbake + jbake-maven-plugin + 0.3.2 + + + + + + default-generate + generate-resources + + generate + + + + + + + + ... + +... + +---- + +=== Dependencies + +The plugin itself includes all required dependencies such as jbake-core, however you will need to explicitly declare dependencies for +the content formats and template engines used in your project. As these dependencies are marked as optional to reduce bloat. + +If you have AsciiDoc content you'll need this dependency: + +---- + + org.asciidoctor + asciidoctorj + 2.2.0 + +---- + +If you have Markdown content you'll need these dependencies: + +---- + + com.vladsch.flexmark + flexmark + 0.61.0 + + + com.vladsch.flexmark + flexmark-profile-pegdown + 0.61.0 + +---- + +If you have Freemarker templates then you'll need this dependency: + +---- + + org.freemarker + freemarker + 2.3.30 + +---- + +If you have Groovy templates then you'll need these dependencies: + +---- + + org.codehaus.groovy + groovy + 3.0.2 + + + org.codehaus.groovy + groovy-templates + 3.0.2 + + + org.codehaus.groovy + groovy-dateutil + 3.0.2 + +---- + +If you have Thymeleaf templates then you'll need this dependency: + +---- + + org.thymeleaf + thymeleaf + 3.0.11.RELEASE + +---- + +If you have Jade4J templates then you'll need this dependency: + +---- + + de.neuland-bfi + jade4j + 1.3.2 + +---- + +An example of the plugin being used can be found in this project: https://github.com/jonbullock/maven-jbake-site[https://github.com/jonbullock/maven-jbake-site] + == Goals There are 4 goals provided by this plugin: