From 4cbb057b97de9a6d0e37d5e61472b080250a1628 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 17 Jan 2023 10:36:17 -0700 Subject: [PATCH] enable fetch option in Antora unless Gradle is running in offline mode --- docs/spring-security-docs.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spring-security-docs.gradle b/docs/spring-security-docs.gradle index 374298415b..4ba7c962ca 100644 --- a/docs/spring-security-docs.gradle +++ b/docs/spring-security-docs.gradle @@ -13,7 +13,7 @@ antora { path = 'lib/antora/templates/per-branch-antora-playbook.yml' checkLocalBranch = true } - options = [clean: true, stacktrace: true] + options = [clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true] } tasks.register('generateAntora') {