gradle-plugin-jbake

Gradle plugin for JBake

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

org.xbib.gradle.plugin
ArtifactId

ArtifactId

gradle-plugin-jbake
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

gradle-plugin-jbake
Gradle plugin for JBake
Project Organization

Project Organization

xbib

Download gradle-plugin-jbake

How to add to project

<!-- https://jarcasting.com/artifacts/org.xbib.gradle.plugin/gradle-plugin-jbake/ -->
<dependency>
    <groupId>org.xbib.gradle.plugin</groupId>
    <artifactId>gradle-plugin-jbake</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.xbib.gradle.plugin/gradle-plugin-jbake/
implementation 'org.xbib.gradle.plugin:gradle-plugin-jbake:1.1.0'
// https://jarcasting.com/artifacts/org.xbib.gradle.plugin/gradle-plugin-jbake/
implementation ("org.xbib.gradle.plugin:gradle-plugin-jbake:1.1.0")
'org.xbib.gradle.plugin:gradle-plugin-jbake:jar:1.1.0'
<dependency org="org.xbib.gradle.plugin" name="gradle-plugin-jbake" rev="1.1.0">
  <artifact name="gradle-plugin-jbake" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.xbib.gradle.plugin', module='gradle-plugin-jbake', version='1.1.0')
)
libraryDependencies += "org.xbib.gradle.plugin" % "gradle-plugin-jbake" % "1.1.0"
[org.xbib.gradle.plugin/gradle-plugin-jbake "1.1.0"]

Dependencies

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 0.7-groovy-2.0

Project Modules

There are no modules declared in this project.

JBake plugin for Gradle

This plugin allows rendering a site using JBake directly from Gradle.

Usage

plugins {
  id 'org.xbib.gradle.plugin.jbake' version '1.2.1'
}
buildscript {
  repositories {
      jcenter()
      maven {
          url "http://xbib.org/repository"
      }
  }

  dependencies {
    classpath 'org.xbib.gradle.plugin:gradle-plugin-jbake:1.2.1'
  }
}

apply plugin: 'org.xbib.gradle.plugin.jbake'

This will add a jbake task to your build, which will search for a standard JBake source tree in src/jbake and generate content into $buildDir/jbake (typically build/jbake).

Configuration

Plugin configuration

The default input and output directories can be changed using the jbake configuration block:

jbake {
    srcDirName  = 'jbake-sources'
    destDirName = 'output'
}

The generated output can then be found at $buildDir/output.

The Version could be changed too:

jbake {
    version  = '2.5.0'
}

The default is 2.5.0.

Render Engine configuration

Jbake uses three engines. The library versions could be changed too:

jbake {

    pegdownVersion = '1.6.0'
    freemarkerVersion = '2.3.23'
    asciidoctorjVersion = '1.5.4.1'
}

JBake configuration

There are several options to configure JBake. One is to have the regular jbake.properties file into the source directory. The other is to use the plugin configuration block:

jbake {
   configuration['template.post.file'] = 'mypost.ftl'
}

License

Apache License 2.0

org.xbib.gradle.plugin
Organization for free exchange of bibliographic data

Versions

Version
1.1.0