Skip to content

Commit 9357c2f

Browse files
committed
antora.component.version extract major.minor only
1 parent 144af07 commit 9357c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spring-security-docs.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tasks.register("generateAntoraComponentVersion") {
5656
def outputFile = new File("$buildDir/generateAntora/antora.component.version")
5757
outputFile.getParentFile().mkdirs()
5858
outputFile.createNewFile()
59-
def antoraVersion = project.version.replaceAll(/^(\d+\.\d+)\.\d+(-\w+)$/, '$1$2')
59+
def antoraVersion = project.version.replaceAll(/^(\d+\.\d+)\.\d+(-\w+)?$/, '$1')
6060
outputFile.setText("$antoraVersion")
6161
}
6262
}

0 commit comments

Comments
 (0)