From 9357c2f05d0703a67dedf9af69ecdc5f0312abea Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 26 Oct 2021 15:22:40 -0500 Subject: [PATCH] antora.component.version extract major.minor only --- 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 f2a7ed55da..5ee9288720 100644 --- a/docs/spring-security-docs.gradle +++ b/docs/spring-security-docs.gradle @@ -56,7 +56,7 @@ tasks.register("generateAntoraComponentVersion") { def outputFile = new File("$buildDir/generateAntora/antora.component.version") outputFile.getParentFile().mkdirs() outputFile.createNewFile() - def antoraVersion = project.version.replaceAll(/^(\d+\.\d+)\.\d+(-\w+)$/, '$1$2') + def antoraVersion = project.version.replaceAll(/^(\d+\.\d+)\.\d+(-\w+)?$/, '$1') outputFile.setText("$antoraVersion") } }