enable fetch option in Antora unless Gradle is running in offline mode

This commit is contained in:
Dan Allen 2023-01-17 10:36:17 -07:00 committed by Marcus Hert Da Coregio
parent c0f7cecc6d
commit 4cbb057b97

@ -13,7 +13,7 @@ antora {
path = 'lib/antora/templates/per-branch-antora-playbook.yml' path = 'lib/antora/templates/per-branch-antora-playbook.yml'
checkLocalBranch = true checkLocalBranch = true
} }
options = [clean: true, stacktrace: true] options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
} }
tasks.register('generateAntora') { tasks.register('generateAntora') {