浏览代码

Merge remote-tracking branch 'origin/5.7.x' into 5.8.x

Josh Cummings 2 年之前
父节点
当前提交
cfb7c87dfd
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 0 1
      .github/workflows/continuous-integration-workflow.yml
  2. 3 1
      docs/spring-security-docs.gradle

+ 0 - 1
.github/workflows/continuous-integration-workflow.yml

@@ -271,7 +271,6 @@ jobs:
           export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
           echo "Updating $REPO@$VERSION to next snapshot version."
           ./gradlew :updateToSnapshotVersion
-          ./gradlew :spring-security-docs:antoraUpdateVersion
           git commit -am "Next development version"
           git push
   perform_post_release:

+ 3 - 1
docs/spring-security-docs.gradle

@@ -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 ->