Skip to content

Commit

Permalink
Fix Index Out of Bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jzheaux committed Oct 17, 2022
1 parent ff055cf commit 89c8150
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/spring-security-docs.gradle
Expand Up @@ -38,7 +38,9 @@ tasks.register('generateAntora') {
.join('\n')
def outputFile = layout.buildDirectory.file('generateAntora/antora.yml').get().asFile
mkdir(outputFile.getParentFile())
def (mainVersion, prerelease) = project.version.split(/(?=-)/, 2)
def components = project.version.split(/(?=-)/)
def mainVersion = components[0];
def prerelease = components.length > 1 ? components[1] : null
def antoraYmlText = file('antora.yml').text
layout.buildDirectory.file('.antora.yml').get().asFile.text = antoraYmlText
antoraYmlText = antoraYmlText.lines().collect { l ->
Expand Down

0 comments on commit 89c8150

Please sign in to comment.