Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
27df4ce
Merge pull request #17 from kwin/feature/jbake-262-compatibility
jonbullock Nov 15, 2018
f51050f
Fail build on baking errors
kwin Nov 16, 2018
645e0ab
Merge pull request #19 from kwin/feature/13_fail-on-baking-errors
jonbullock Nov 16, 2018
66195e7
Merge remote-tracking branch 'hd42/master' (Update to jbake 2.6.3)
ascheman Oct 5, 2019
a9eb7d9
Update to JBake 2.6.4
ascheman Oct 5, 2019
ac0a641
Added freemarker outputEncoding property to the config.
jaybob007 Oct 28, 2019
38d281e
Set output encoding property in Freemarker config.
jaybob007 Oct 28, 2019
18a26df
Added test to make sure Freemarker url encoding is working.
jaybob007 Oct 28, 2019
d6fbf2e
removed empty ConfigUtil class
jaybob007 Oct 28, 2019
c8205b9
added back file
jaybob007 Oct 28, 2019
4b6b7fe
Merge pull request #22 from dukecon/master
jonbullock Apr 14, 2020
755ef0a
fix: Use same default port as the CLI tool
rhwood Apr 15, 2020
9ad15de
[maven-release-plugin] prepare release v0.3.2
jonbullock Apr 15, 2020
59262e0
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 15, 2020
f3b3ab8
fix: Use configuration, falling back on default if needed
rhwood Apr 18, 2020
432738d
doc: Update version on maven and add "live" badge
rhwood Apr 18, 2020
f35933b
Merge pull request #28 from rhwood/patch-1
jonbullock Apr 19, 2020
33846f2
Merge pull request #29 from rhwood/patch-2
jonbullock Apr 19, 2020
1e8749a
feat: Allow the file used to ignore directories to be specified
rhwood Apr 27, 2020
9192424
update jbake to 2.6.5
ancho May 1, 2020
a7821ec
Merge pull request #30 from ancho/update/jbake-2.6.5
jonbullock May 11, 2020
56d2044
Merge remote-tracking branch 'upstream/master' into selective-ignore
rhwood May 31, 2020
d5f3fcc
test: "ignore.file" property is respected when copying assets
rhwood May 31, 2020
173baaf
test: test `JBakeConfiguration.getIgnoreFileName()` with default config
rhwood May 31, 2020
905fec2
doc: add missing deprecation statement
rhwood May 31, 2020
3cbeb33
Wrap usage at 80 characters instead of 100
rhwood May 31, 2020
0b250c1
[maven-release-plugin] prepare release v0.3.3
jonbullock Sep 12, 2020
0fb5ac0
[maven-release-plugin] prepare for next development iteration
jonbullock Sep 12, 2020
e839bb8
Updated version info.
jonbullock Sep 12, 2020
d564b9f
Merge pull request #31 from jonbullock/master
jonbullock Sep 12, 2020
4d70a98
jbake issue #652: prev/next post navigation only uses published posts
mhoennig Oct 28, 2020
57b114f
Resolves #25, resolves #32
jonbullock Mar 3, 2021
ad85e94
Fixed whitespace
jonbullock Mar 3, 2021
504cf71
Merge remote-tracking branch 'upstream/master'
jonbullock Mar 3, 2021
396d5fc
Merge pull request #33 from jonbullock/master
jonbullock Mar 3, 2021
626d90e
publish to sonatype nexus instead of bintray
ancho Mar 20, 2021
f403af3
tag and release. sign distribution package and attach as upload
ancho Mar 21, 2021
332aae2
change sdkman distribution url from bintray to github releases
ancho Mar 21, 2021
1148fe5
produce reproducible archives (distribution zip and jar files)
ancho Apr 3, 2021
932d5f5
Fix typo and align version of plugin in readme
tarilabs Apr 4, 2021
4f4153e
Merge pull request #34 from tarilabs/patch-1
jonbullock Apr 11, 2021
1985eda
Merge pull request #671 from ancho/feature/maven-central-publishing
jonbullock Apr 12, 2021
a2a2817
Merge remote-tracking branch 'upstream/master'
jonbullock Apr 12, 2021
7166029
Fixed spacing.
jonbullock Apr 12, 2021
e0f16f4
Excluded OrientDB class from JaCoCo instrumentation.
jonbullock Apr 13, 2021
141220e
Merge pull request #674 from jonbullock/master
jonbullock Apr 13, 2021
3c1cefb
Replaced Bintray download badge with one for GitHub.
jonbullock Apr 13, 2021
39869c8
(feat) Output abbreviated git hash during CLI execution https://githu…
akashRindhe Apr 14, 2021
2854499
Update version for next release.
jonbullock Apr 15, 2021
6d07faa
Merge pull request #678 from jonbullock/change/prepare-2.7.0
jonbullock Apr 17, 2021
4007fd2
Merge pull request #679 from jonbullock/change/readme-bintray
jonbullock Apr 18, 2021
8972683
Updated jbake-core dependency to 2.6.6
jonbullock Apr 18, 2021
119a999
Merge pull request #36 from jonbullock/change/upgrade-jbake-2.6.6
jonbullock Apr 20, 2021
41a5432
[maven-release-plugin] prepare release v0.3.4
jonbullock Apr 20, 2021
bb62a9f
[maven-release-plugin] prepare for next development iteration
jonbullock Apr 20, 2021
e561332
Updated docs for 0.3.4 release.
jonbullock Apr 20, 2021
e25286b
Merge pull request #37 from jonbullock/change/update-docs-2.6.6
jonbullock Apr 20, 2021
d02e21f
Added Dockerfile and updated README.
jonbullock Apr 26, 2021
82607a3
Docker image defaults to just bake command and now using adoptopenjdk…
jonbullock Apr 27, 2021
e85c9f8
Ground work...
jonbullock Apr 27, 2021
24eca59
Updated references to images used.
jonbullock Apr 27, 2021
23db1fa
Added links.
jonbullock Apr 27, 2021
f890e36
Use lower log level to report missing template engine
pzygielo Apr 29, 2021
60f34af
Implemented YAML data file feature.
jonbullock May 3, 2021
b7e65b3
implemented ConfigurationPrinter to print configuration to a PrintStream
ancho Nov 25, 2018
a169bd4
add -ls and alias --list-settings option to cli
ancho Nov 25, 2018
d68ddea
add tests for new launch option and cleanup
ancho May 8, 2021
cf3f29c
enabled checkstyle rule allowSingleLineStatement
ancho Jan 19, 2019
2433bb6
add index.html to the list of known welcome files for jetty
ancho May 9, 2021
c0a74ec
Merge pull request #687 from ancho/fix/jetty-welcome-files
jonbullock May 9, 2021
8f22ec8
Merge pull request #682 from pzygielo/loglevel
jonbullock May 9, 2021
c4e174e
Merge pull request #646 from rhwood/patch-1
jonbullock May 9, 2021
6eabead
Use gradle:6.8-jdk11 as builder image
jeremie-lesage May 10, 2021
164f2db
switch to picocli
ancho May 11, 2021
1d3e573
tell user init is missing if template used without init
ancho May 11, 2020
e2958af
public accessible run method in Main class. extends JBakeException wi…
ancho May 13, 2020
35753aa
remove confusing arity for init option
ancho May 13, 2020
68918b1
make template option optional use freemarker as fallback if no templa…
ancho May 13, 2020
ef45bbf
extract SystemExit class
ancho May 17, 2020
ba02709
set usage help autowidth option and align usage help long options max…
ancho Jun 1, 2020
96156b0
update picocli to 4.6.1
ancho May 11, 2021
c4d5a06
cleanup MarkupEngine
ancho Aug 17, 2018
9886f6a
removed unused imports
ancho Aug 17, 2018
33f4a5f
introduced DocumentModel
ancho Aug 18, 2018
3e0bc64
use DocumentModel
ancho Aug 18, 2018
124d60f
introduce TemplateModel
ancho Aug 18, 2018
5f8cb2a
cleanup and small refactoring to create a HashMap from configuration
ancho Aug 19, 2018
8cf9a30
move Crawler Attributes to ModelAttributes
ancho Aug 19, 2018
75154d4
fix codacy warnings
ancho Aug 19, 2018
c8b3301
handle document caching
ancho Aug 19, 2018
b26dbc6
make DocumentList more generic
ancho Aug 22, 2018
6125323
fix broken status concatenation
ancho Nov 14, 2018
6eb635b
cleanup template engines
ancho Jul 28, 2019
1b5691a
one document table for all types
ancho Aug 18, 2018
ca60e6b
Merge pull request #1 from jeci-sarl/change/add-dockerfile
jonbullock May 12, 2021
4e787e3
Tweaked dockerignore
jonbullock May 12, 2021
93685f1
Merge pull request #681 from jonbullock/change/add-dockerfile
jonbullock May 12, 2021
497fee3
Return empty Map instead of null.
jonbullock May 12, 2021
b895c6e
Set version for release.
jonbullock May 14, 2021
eda5838
Merge pull request #695 from jonbullock/release/2.6.7
jonbullock May 14, 2021
bae1e92
create sha256 checksum files after distZip and add them to the github…
ancho May 16, 2021
ea48b5a
Use newer JDKs in Travis build
pzygielo May 17, 2021
abd500a
Updated jbake-core dependency to 2.6.7
pzygielo May 17, 2021
c2d7dbd
Data files shouldn't be included in all_content
jonbullock May 18, 2021
c107b50
Update test to reflect additional extractor.
jonbullock May 18, 2021
82a0cba
Added test cases for feature.
jonbullock May 18, 2021
b27a6ae
Merge pull request #653 from mhoennig/master
jonbullock May 19, 2021
5366faf
Merge pull request #676 from akashRindhe/master
jonbullock May 19, 2021
6dc801f
Merge pull request #698 from ancho/feature/create-checksum-file
jonbullock May 19, 2021
ec5a169
Merge pull request #614 from jaybob007/master
jonbullock May 19, 2021
a89a55e
Merge pull request #589 from ancho/feature/apply-checkstyle-rules
jonbullock May 19, 2021
f2d7b62
Merge branch 'master' into selective-ignore
jonbullock May 19, 2021
eac7f7e
Merge pull request #639 from rhwood/selective-ignore
jonbullock May 19, 2021
df55d33
Merge pull request #684 from jonbullock/feature/yaml-data-files
jonbullock May 19, 2021
dcc0e83
Merge pull request #572 from ancho/feature/picocli-integration
jonbullock May 20, 2021
dfe8005
Merged in #431
jonbullock May 20, 2021
7be9cfa
Mreged in #450
jonbullock May 20, 2021
e0c37a5
Merge branch 'rustamzh-fix/365-generate-404-page'
jonbullock May 20, 2021
0666868
Updated tests following #450
jonbullock May 20, 2021
c3d64fa
Merge remote-tracking branch 'upstream/master'
jonbullock May 20, 2021
d589a33
Merged in #647
jonbullock May 20, 2021
e5b9aa0
Merged in #533
jonbullock May 20, 2021
0010b41
Merge branch 'ancho-feature/refactor-contentstore'
jonbullock May 20, 2021
011b899
update to apache configurations2. load properties files with default …
ancho Apr 28, 2020
33e2b0c
Merged in #575
jonbullock May 21, 2021
4630cf9
Merge branch 'ancho-feature/list-configurations'
jonbullock May 21, 2021
f3fc9de
Merged in #668
jonbullock May 22, 2021
9e9492a
Merge branch 'ancho-update/apache-configurations'
jonbullock May 22, 2021
fe280a2
Improved handling of YAML files after switch to use of DocumentModel.
jonbullock May 22, 2021
a4ecc3e
Merge pull request #700 from jonbullock/master
jonbullock May 22, 2021
a845246
Updated version.
jonbullock May 22, 2021
f09fa75
Merge pull request #701 from jonbullock/release/2.7.0-rc.1
jonbullock May 22, 2021
85301f4
Added extra method so build plugins don't need to depend on Apache Co…
jonbullock May 23, 2021
87c5cea
add some tests. throw JBakeException to hide commons configuration de…
ancho May 24, 2021
38946aa
Merge pull request #702 from jonbullock/change/config-extension
jonbullock May 24, 2021
a3fdbf0
Updated version to 2.7.0-rc.2
jonbullock May 24, 2021
045c61c
Merge pull request #703 from jonbullock/release/2.7.0-rc.2
jonbullock May 24, 2021
c2abe66
Updated jbake-core to 2.7.0-rc.2
jonbullock May 24, 2021
81708fd
Updated version number.
jonbullock May 24, 2021
f057349
Merge pull request #38 from pzygielo/bump-jbake-core
jonbullock May 24, 2021
a15db50
[maven-release-plugin] prepare release v0.3.5
jonbullock May 24, 2021
680351f
[maven-release-plugin] prepare for next development iteration
jonbullock May 24, 2021
4765ef0
Merge branch 'master' into change/support-2.7.0-rc.2
jonbullock May 24, 2021
6846121
Merge pull request #40 from jonbullock/change/support-2.7.0-rc.2
jonbullock May 24, 2021
7731b38
Updated version number.
jonbullock May 24, 2021
9a764da
Merge pull request #41 from jonbullock/master
jonbullock May 24, 2021
3f0f59a
[maven-release-plugin] prepare release v0.3.6-rc.2
jonbullock May 25, 2021
e550c42
[maven-release-plugin] prepare for next development iteration
jonbullock May 25, 2021
5829541
Fixes #692
jonbullock Jun 4, 2021
109b7c1
Merge pull request #707 from jonbullock/fix/692-template-folders
jonbullock Jun 8, 2021
643aeb6
Allow setting docker image timezone by env variable
manikmagar Jun 13, 2021
9bf06c1
Fixes #708
jonbullock Jun 13, 2021
3bfcc9d
Merge pull request #711 from manikmagar/fix/jbake-710
jonbullock Jun 13, 2021
c89ebc9
Merge pull request #712 from jonbullock/fix/708-nextprev
jonbullock Jun 20, 2021
e70d424
Updated version to 2.7.0-rc.3
jonbullock Jun 20, 2021
4e9e703
Merge pull request #713 from jonbullock/release/2.7.0-rc.3
jonbullock Jun 20, 2021
bfc8bdf
Pointing documentation to changed default port introduced in #28
asbachb Jun 25, 2021
0fcb862
Fix for #714
jonbullock Jul 20, 2021
3ff97ea
Merge pull request #715 from jonbullock/fix/714-next-null
jonbullock Jul 20, 2021
13584ed
Update version to 2.7.0-rc.4
jonbullock Jul 21, 2021
cec1009
Merge pull request #716 from jonbullock/release/2.7.0-rc.4
jonbullock Jul 21, 2021
bb4de1d
Change protocol used to clone examples
pzygielo Sep 2, 2021
295f249
Documentation - contribution document updated to reflect support for …
craig-mcd Sep 15, 2021
5a47ac1
Merge pull request #724 from CraigMcDonaldCodes/issue-723
jonbullock Sep 22, 2021
95e2776
Fixes #726
jonbullock Oct 18, 2021
5bbc76b
upgraded sparq-core version from 2.3 to 2.9.3 to fix
Nov 2, 2021
a3df558
Improve GRADLE build Performance
shisheng-1 Nov 8, 2021
7030731
Merge pull request #730 from jonbullock/fix/726-timezone
jonbullock Nov 16, 2021
5d1d891
Merge pull request #721 from pzygielo/protocol
jonbullock Nov 19, 2021
8951d78
Merge pull request #731 from shisheng-1/Modify_GRADLE_1
jonbullock Nov 19, 2021
e9f570c
Update version to 2.7.0-rc.5
jonbullock Nov 19, 2021
fd74675
Merge pull request #732 from jonbullock/release-2.7.0-rc.5
jonbullock Nov 20, 2021
aa11e29
Fix data files being referenced from Pebble templates.
jonbullock Dec 22, 2021
0fc9ee1
Merge pull request #43 from asbachb/fix-documentation
jonbullock Dec 28, 2021
3d3b22a
Merge pull request #45 from httpants/feature/fix-jbake-issue-466
jonbullock Dec 28, 2021
9cb1dca
Moved all files into subdir jbake-maven-plugin to prepare to merge in…
ge0ffrey Dec 28, 2021
f315131
Merge jbake-maven-plugin repository into jbake repository
ge0ffrey Dec 28, 2021
05f2d38
Remove dead Mercurial files
ge0ffrey Dec 28, 2021
cc82c03
Align gitignore and travis files of maven plugin with root gitignore …
ge0ffrey Dec 28, 2021
e475de0
The maven plugin uses Apache License 2 as noted in the readme and cop…
ge0ffrey Dec 28, 2021
24a5727
Use gradle to build jbake-maven-plugin (FAILING on qdox casting)
ge0ffrey Dec 28, 2021
f03403f
upgrade to gradle 7.3.3 remove jbake-maven-plugin as module from base…
ancho Dec 29, 2021
4e94cf2
restructure build to get jbake-maven-plugin working
ancho Dec 29, 2021
2bc0d50
refactor build using a jbake specific java-common convention plugin a…
ancho Dec 29, 2021
61556f9
disable sonartype and coveralls stages on travis ci
ancho Dec 29, 2021
eb3239b
jbake-maven-plugin: Use gradle.properties versions + include optional…
ge0ffrey Dec 30, 2021
50b5980
jbake-maven-plugin: BUILD.adoc mention
ge0ffrey Dec 30, 2021
52b7ef4
Restore the optional dependencies
ge0ffrey Dec 30, 2021
8ba2515
jbake-maven-plugin: mention that all optional dependencies are now in…
ge0ffrey Dec 30, 2021
941c706
Restore optional flag for commons-vfs2 too
ge0ffrey Dec 31, 2021
c242757
add pom definition and enable signatures for jbake-maven-plugin
ancho Jan 1, 2022
6461eba
Merge pull request #740 from ge0ffrey/merge-repo-jbake-maven-plugin
jonbullock Jan 2, 2022
fe42958
security update logback and other dependency updates
ancho Dec 30, 2021
a61dc67
add jdk 17 in appveyor / travis-ci and remove older versions
ancho Jan 2, 2022
3a2b0a2
use latest xcode image for osx jobs
ancho Jan 2, 2022
0a3ce8e
next try to fix osx build
ancho Jan 2, 2022
aa14595
Merge pull request #734 from ancho/feature/update-dependencies
ancho Jan 2, 2022
89c022b
Manually merged #737
jonbullock Jan 3, 2022
1a4499c
Merge remote-tracking branch 'upstream/master' into merge/configure-j…
jonbullock Jan 3, 2022
e4aa9a8
Added generation of HelpMojo.
jonbullock Jan 5, 2022
6b200da
Use blocking method rather than the throwing one
pzygielo Jan 5, 2022
039d6fa
Removed github-release plugin, replaced with JReleaser.
jonbullock Jan 5, 2022
9afb552
Moved all plugin versions into gradle.properties
jonbullock Jan 5, 2022
7f594f4
Merge pull request #742 from jonbullock/merge/configure-jreleaser-737
jonbullock Jan 5, 2022
7343470
Merge pull request #736 from jonbullock/fix/pebble-data-files
jonbullock Mar 3, 2022
7a38eed
Updated secret reference.
jonbullock Mar 6, 2022
1d97619
Added SDKMAN secrets.
jonbullock Mar 7, 2022
ccd29ad
Reverted to SNAPSHOT suffix.
jonbullock Mar 7, 2022
6e2a495
Added transform to JReleaser based artifacts.
jonbullock Mar 7, 2022
ac58d7e
Merge pull request #744 from pzygielo/queue
jonbullock Mar 10, 2022
8f7b8be
Change DuplicatesStrategy from EXCLUDE to INHERIT
georgecao Mar 18, 2022
ffbc0c9
Change DuplicatesStrategy from EXCLUDE to INCLUDE
georgecao Mar 18, 2022
06e4c0d
Fixes #747
jonbullock Mar 20, 2022
fe75f07
As adoptopenjdk is deprecated the dependencies should be adopted to i…
areyouready Mar 24, 2022
8113dac
Merge pull request #758 from areyouready/Docker_Run_JRE_Change
jonbullock Mar 24, 2022
973204e
Stops the duplication and the need for a strategy at all.
georgecao Mar 29, 2022
4d5cd56
Merge pull request #756 from georgecao/ds
jonbullock Mar 31, 2022
3fdfd65
Regression test for fix.
jonbullock Apr 3, 2022
2e5a20b
Merge pull request #757 from jonbullock/fix/747-orientdb-otrackedmap
jonbullock May 30, 2022
7505683
Fixes #709
jonbullock Sep 18, 2022
563be75
Resolved issue when getting tags back for content, following OrientDB…
jonbullock Sep 19, 2022
e1fae71
Included file encoding parameter to cover execution on Windows.
jonbullock Sep 19, 2022
857cf2e
Used runner context to detect OS build is running on.
jonbullock Sep 19, 2022
7aeb4c6
Altered shell for Windows.
jonbullock Sep 19, 2022
3064f1c
Merge pull request #765 from jonbullock/fix/709-apple-silicon
jonbullock Sep 19, 2022
4db36fe
Update version to 2.7.0-rc.6
jonbullock Sep 20, 2022
5b1163e
Merge pull request #766 from jonbullock/release-2.7.0-rc.6
jonbullock Sep 20, 2022
8341bd1
Fixed signing for publishing to Maven Central.
jonbullock Sep 21, 2022
38ed80d
Merge pull request #768 from jonbullock/fix/maven-central-signing
jonbullock Sep 21, 2022
701f9dc
Upgrade AsciidoctorJ to version 2.5.7
jmp Nov 8, 2022
f7aa575
Merge pull request #771 from jmp/upgrade-asciidoctorj-to-v2.5.7
jonbullock Feb 20, 2023
ee903ba
Reverted to SNAPSHOT suffix.
jonbullock Feb 25, 2023
9a24627
Fix openjdk11 build on Travis.
jonbullock Feb 25, 2023
00bc276
Still trying to get openjdk11 working on OSX.
jonbullock Feb 25, 2023
8a8101a
Removed MacOS build with openjdk11 for time being.
jonbullock Feb 25, 2023
c4ab637
Bumped version for next RC.
jonbullock Feb 26, 2023
5921ee5
Reverted to SNAPSHOT suffix.
jonbullock Feb 26, 2023
faa0c6c
chore: upgrade github actions version
Nov 22, 2025
d3a21e3
chore: upgrade github actions version
Nov 22, 2025
61a12e3
chore: use gradle action for cache
Nov 22, 2025
d6198fb
Merge pull request #791 from jbake-org/fix/gh-actions
ancho Nov 22, 2025
7e81a5e
update to asciidoctorj 3.0.1 and bump some other dependency versions …
ancho Nov 12, 2025
88d4cb4
update pebble, jetty, jgit and grgit
ancho Nov 12, 2025
e285d68
upgrade gradle to 8.5 making project compilable with jdk 21
ancho Nov 13, 2025
a59c5d1
upgrade gradle to 8.14.3
ancho Nov 13, 2025
60a19c3
upgrade gradle to 9.2.0
ancho Nov 15, 2025
c01e3de
remove grgit and replace with simple Exec tasks for now. the plugin i…
ancho Nov 21, 2025
141609c
use jdk 21 for actions
ancho Nov 21, 2025
68b36bc
split write protect tests between windows and linux
ancho Nov 23, 2025
e5357e4
try to make file readable instead of folder on windows
ancho Nov 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/build
/jbake-dist/build
.gradle
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on:
push:
branches:
- 'master'
- 'chore/**'
- 'feat/**'
- 'fix/**'
pull_request:
branches:
- 'master'

jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v5

- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5

- name: Build-win
if: runner.os == 'Windows'
shell: cmd
run: gradlew.bat -Dfile.encoding=UTF-8 build -S
- name: Build-nix
if: runner.os != 'Windows'
run: ./gradlew build -S

- name: Upload Reports
uses: actions/upload-artifact@v4
if: failure()
with:
name: reports-${{ runner.os }}
path: |
jbake-core/build
jbake-dist/build
48 changes: 48 additions & 0 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: EarlyAccess

on:
push:
branches: [ master ]

jobs:
earlyaccess:
name: EarlyAccess
if: github.repository == 'jbake-org/jbake'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5

- name: Build
run: ./gradlew build -S

- name: Release
run: ./gradlew jreleaserRelease -S
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
JRELEASER_SDKMAN_CONSUMER_KEY: ${{ secrets.SDKMAN_CONSUMER_KEY }}
JRELEASER_SDKMAN_CONSUMER_TOKEN: ${{ secrets.SDKMAN_CONSUMER_TOKEN }}

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v4
with:
name: jreleaser-logs
path: |
jbake-dist/build/jreleaser/trace.log
jbake-dist/build/jreleaser/output.properties
39 changes: 21 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,36 @@ install: true
script:
- "./gradlew check --stacktrace"

jdk:
- openjdk15
- openjdk11

jobs:
include:

- jdk: openjdk15
os: osx
- jdk: openjdk21

- jdk: openjdk17

- jdk: openjdk11
os: osx

- stage: Quality Check
name: sonarqube
jdk: openjdk11
script:
- "./gradlew jacocoRootReport sonarqube -i --stacktrace"
- os: osx
osx_image: xcode13.2 # defaults to openjdk17

# below config fails
# - os: osx
# osx_image: xcode9.4
# jdk: openjdk11

- stage: Quality Check
name: coveralls
jdk: openjdk11
script:
- "./gradlew -PskipSigning jacocoRootReport coveralls -i --stacktrace"
# - stage: Quality Check
# name: sonarqube
# jdk: openjdk11
# script:
# - "./gradlew jacocoRootReport sonarqube -i --stacktrace"
#
# - stage: Quality Check
# name: coveralls
# jdk: openjdk11
# script:
# - "./gradlew -PskipSigning jacocoRootReport coveralls -i --stacktrace"

notifications:
irc: "irc.freenode.org#jbake"
webhooks:
urls:
- https://webhooks.gitter.im/e/2d332fabb02dba68a36b
Expand Down
59 changes: 44 additions & 15 deletions BUILD.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To get an overview of all available tasks with a short description run `./gradle

== Structure

There are 3 projects
There are 4 projects:

root aka. jbake-base::
configures subprojects, jacoco execution aggregation and coveralls
Expand All @@ -34,6 +34,9 @@ jbake-core::
- the core library. produces jbake-core-{version}.jar (`build/libs`)
- publishes to bintray maven repository jbake-core

jbake-maven-plugin::
- the JBake maven plugin, build by Gradle too

jbake-dist::
- bundles the cli to an distribution (`build/distribution`)
- publishes to bintray binary repository jbake
Expand Down Expand Up @@ -161,36 +164,62 @@ plugin:: https://docs.gradle.org/current/userguide/application_plugin.html

WARNING: Never add credentials to the repository

=== publish to bintray
=== github release

Bump desired project version in the projects `gradle.properties` file.

You can publish to bintray with
Like

----
./gradlew bintrayUpload
version = 2.7.0
----

If you want to see what's going on without publishing
Commit and push to origin at github.

----
./gradlew -PbintrayDryRun=true bU --info
./gradlew signArchives
./gradlew githubRelease
----

You need to add two properties to your local gradle.properties file (_~/.gradle/gradle.properties_).
The task will create a tag for you and create a release. Additionaly it uploads the binary distribution and the corresponding signature to the release.

bintrayUsername=username
bintrayKey=secret
[NOTE]
====
You need to add some properties to your local gradle.properties file (_~/.gradle/gradle.properties_)

It's possible to change the organization and repository too.
The properties are called _bintrayOrg_ and _bintrayRepo_.
To publish to your private repository in an example repository run
----
github.token=<access token>
github.release.owner=jbake-org
github.release.repo=jbake
----

It's also possible to dry-run this task. Execute `export GITHUB_RELEASE_DRY_RUN=true` in your terminal.
====

plugin:: https://github.com/BreadMoirai/github-release-gradle-plugin

=== publish to nexus sonatype

You can publish to nexus with

----
gradle -PbintrayOrg='' -PbintrayRepo=example bU
./gradlew publishToSonatype
----

The default values can be found in the _gradle.properties_ file at the root of this repository.
The task will create a staging repository. You need to close and publish it manually.
You can automate this process with the other tasks like `closeSonatypeStagingRepository` and `closeAndReleaseSonatypeStagingRepository`.

For more information see:

* https://github.com/gradle-nexus/publish-plugin
* https://central.sonatype.org/pages/ossrh-guide.html

You need to add two properties to your local gradle.properties file (_~/.gradle/gradle.properties_).

sonatypeUsername=username
sonatypePassword=secret

plugin:: https://plugins.gradle.org/plugin/com.jfrog.bintray
plugin:: https://plugins.gradle.org/plugin/io.github.gradle-nexus.publish-plugin

=== publish to sdkman

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ review the JBake documentation and make...

=== Supported Java Versions

At present JBake supports Java 7 and above and any contributions shouldn't use Java 8+ syntax, please see
the {uri-issues}[roadmap] for when support for Java 8 is planned.
At present JBake supports Java 8 and above so any contributions shouldn't use Java 9+ syntax, please see
the {uri-issues}[roadmap] for when support for later Java versions is planned.
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM gradle:6.8-jdk11 as builder

LABEL maintainer="https://jbake.org/community/team.html"

ENV JBAKE_HOME=/opt/jbake

RUN mkdir -p ${JBAKE_HOME}
COPY . /usr/src/jbake

RUN set -o errexit -o nounset \
&& echo "Building JBake" \
&& cd /usr/src/jbake \
&& gradle --no-daemon installDist \
&& cp -r jbake-dist/build/install/jbake/* $JBAKE_HOME \
&& rm -r ~/.gradle /usr/src/jbake

FROM eclipse-temurin:11-jre-alpine

ENV JBAKE_USER=jbake
ENV JBAKE_HOME=/opt/jbake
ENV PATH ${JBAKE_HOME}/bin:$PATH
ENV TZ=UTC

RUN apk --no-cache update && \
apk --no-cache upgrade && \
apk add --update tzdata && \
rm -rf /var/cache/apk/*

RUN echo ${TZ} > /etc/timezone

RUN adduser -D -u 1000 -g "" ${JBAKE_USER} ${JBAKE_USER}

USER ${JBAKE_USER}

COPY --from=builder /opt/jbake /opt/jbake

WORKDIR /mnt/site

VOLUME ["/mnt/site"]

ENTRYPOINT ["jbake"]
CMD ["-b"]

EXPOSE 8820
51 changes: 45 additions & 6 deletions README.asciidoc
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
= JBake
Jonathan Bullock
2017-05-11
2021-04-13
:idprefix:

== JBake

http://jbake.org[JBake] is a Java based open source static site/blog generator for developers.

image:https://img.shields.io/github/v/release/jbake-org/jbake?label=download&sort=semver["GitHub Release Download", link="https://github.com/jbake-org/jbake/releases/latest"]
image:https://img.shields.io/maven-central/v/org.jbake/jbake-core.svg["Maven Download", link="http://jbake.org/download.html#maven"]
image:https://img.shields.io/homebrew/v/jbake.svg["Homebrew Download", link="http://jbake.org/download.html#homebrew"]

image:https://img.shields.io/travis/com/jbake-org/jbake/master.svg["Build Status", link="https://travis-ci.com/github/jbake-org/jbake"]
image:https://ci.appveyor.com/api/projects/status/2q7hvg03wsjx953b?svg=true["Appveyor Status", link="https://ci.appveyor.com/project/jbake-org/jbake"]
image:https://img.shields.io/coveralls/jbake-org/jbake/master.svg["Coverage Status", link="https://coveralls.io/r/jbake-org/jbake"]
image:https://img.shields.io/maven-central/v/org.jbake/jbake-core.svg["Maven Download", link="http://jbake.org/download.html#maven"]
image:https://api.bintray.com/packages/jbake/maven/jbake-core/images/download.svg["Bintray Download", link="https://bintray.com/jbake/maven/jbake-core/_latestVersion"]
image:https://img.shields.io/homebrew/v/jbake.svg["Homebrew Download", link="http://jbake.org/download.html#homebrew"]

image:https://badges.gitter.im/jbake-org/jbake.svg["Gitter Chat", link="https://gitter.im/jbake-org/jbake"]

Expand Down Expand Up @@ -55,6 +54,46 @@ Talk to other users of JBake on the forum:

* http://groups.google.com/group/jbake-user[Forum]

== Docker Image

The image uses the official https://hub.docker.com/r/adoptopenjdk/openjdk11/[adoptopenjdk/openjdk11:alpine] image
for building a distribution of JBake and
https://hub.docker.com/r/adoptopenjdk/openjdk11/[adoptopenjdk/openjdk11:alpine-jre] for runtime.

=== Build

To build the Docker image:

----
$ docker build -t jbake/jbake:latest .
----

=== Usage

To execute JBake via Docker run this from project directory:

----
$ docker run --rm -u jbake -v "$PWD":/mnt/site jbake/jbake:latest
----

This command will execute using the jbake user to avoid running as root and will mount the current working directory as `/mnt/site`
in the Docker container where JBake is expecting your project files to be. By default the Docker image will execute a bake `-b` only.

If you want to bake and serve your project using the Docker image then you'll need to override the default command:

----
$ docker run --rm -u jbake -v "$PWD":/mnt/site -p 8820:8820 jbake/jbake:latest -b -s
----

This command will also expose port 8820 from the container, you'll also need to set the following option in your `jbake.properties` file:

----
server.hostname=0.0.0.0
----

NOTE: Docker image timezone is _UTC_. This may affect the date and time expected in output content. To set different timezone, add `TZ` environment variable and set value to required https://en.wikipedia.org/wiki/List_of_tz_database_time_zones[timezone^]. Example - `docker run --rm -u jbake -e TZ=America/New_York -v "$PWD":/mnt/site jbake/jbake:latest`


== Build System

The project uses http://gradle.org[Gradle] 4.9+ as the build system.
Expand Down
7 changes: 3 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ clone_depth: 10
environment:
TERM: dumb
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- JAVA_HOME: C:\Program Files\Java\jdk11
- JAVA_HOME: C:\Program Files\Java\jdk15
- JAVA_HOME: C:\Program Files\Java\jdk17

install:
- SET PATH=%JAVA_HOME%\bin;%PATH%
Expand All @@ -20,6 +19,6 @@ install:
- gradlew.bat --version
- file C:\projects\jbake\jbake-core\src\test\resources\fixture\jbake.properties
build_script:
- gradlew.bat -i assemble
- gradlew.bat -Dfile.encoding=UTF-8 -i assemble
test_script:
- gradlew.bat -i -S check
- gradlew.bat -Dfile.encoding=UTF-8 -i -S check
Loading