Fix anotra version replacement script
@@ -61,7 +61,7 @@ replaceInFiles.each { path ->
// This can only work on main branch or during a release. Otherwise it will break antora.yml.
if (path.getFileName().toString().equals('antora.yml')) {
- final String versionReplacement = 'version: ' + (project.version.endsWith('-SNAPSHOT') ? 'latest' : project.version)
+ final String versionReplacement = 'version: ' + (project.version.endsWith('-SNAPSHOT') ? 'next' : project.version)
println ' - setting '+ versionReplacement
final Pattern versionPattern = ~'version: [^\\s]+'
newContentString = versionPattern.matcher(newContentString).replaceFirst(versionReplacement)
