You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2021/10/27 10:24:07 UTC
[camel-quarkus] 02/02: Fix anotra version replacement script
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 0b0fbe4a12079c6a3d3c5418b845f904a9153454
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed Oct 27 08:56:07 2021 +0100
Fix anotra version replacement script
---
tooling/scripts/update-antora-config.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tooling/scripts/update-antora-config.groovy b/tooling/scripts/update-antora-config.groovy
index 91958cb..41d4b47 100644
--- a/tooling/scripts/update-antora-config.groovy
+++ b/tooling/scripts/update-antora-config.groovy
@@ -59,9 +59,9 @@ replaceInFiles.each { path ->
m.appendTail(newContent)
String newContentString = newContent.toString()
-// This can only work on main branch or during a release. Otherwise it will break antora.yml.
+ // 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)