在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jbake-org/jbake-gradle-plugin开源软件地址(OpenSource Url):https://github.com/jbake-org/jbake-gradle-plugin开源编程语言(OpenSource Language):Groovy 61.3%开源软件介绍(OpenSource Introduction):JBake plugin for GradleRequirements
ExamplesA few of the sites that use the plugin and serve as a good example are: UsageThis is work in progress plugins {
id 'org.jbake.site' version '5.5.0'
} This will add a
InitYou can initialise the project structure by running the following command: gradle bakeInit The default template is set to Alternatively you may define a value for bakeInit {
templateUrl = 'http://server.acme.com/path/to/template.zip'
} PreviewingYou can preview your content by running the following command: gradle bake bakePreview This will start up a jetty container and serve your baked site on http://localhost:8080 by default. You can change the port by adding this to your build file. bakePreview {
port = '8090'
} The bakePreview {
input = project.file('path/to/content')
} ConfigurationPlugin configurationThe default input and output directories can be changed using the jbake {
srcDirName = 'jbake-sources'
destDirName = 'output'
} The generated output can then be found at The Version could be changed too: jbake {
version = '2.6.5'
} The default is 2.6.7. Render Engine configurationJbake uses several engines. The library versions could be changed too: jbake {
pegdownVersion = '1.6.0'
flexmarkVersion = '0.62.2' // since jbake 2.6.0
freemarkerVersion = '2.3.31'
groovyTemplatesVersion = '3.0.7'
jade4jVersion = '1.2.7'
thymeleafVersion = '3.0.12.RELEASE'
pebbleVersion = '3.1.5' // since jbake 2.6.5
asciidoctorJavaIntegrationVersion = '0.1.4' //pre jbake 2.3.1
asciidoctorjVersion = '2.4.3' //since jbake 2.3.1
jettyVersion = '9.4.36.v20210114'
} Notice the This plugin handles this change internally. If you use a Version > 2.3.0 of jbake, the dependency switch to the new one. JBake configurationThere are several options to configure JBake. One is to have the regular jbake {
configuration['template.post.file'] = 'mypost.ftl'
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论