Browse Source

Merge branch '5.8.x' into 6.2.x

pull/15314/head
Marcus Hert Da Coregio 1 year ago
parent
commit
24f573dd4c
  1. 2
      .github/workflows/pr-build-workflow.yml
  2. 3
      buildSrc/src/main/java/org/springframework/security/CheckExpectedBranchVersionPlugin.java

2
.github/workflows/pr-build-workflow.yml

@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew clean build --continue
run: ./gradlew clean build -PskipCheckExpectedBranchVersion --continue
generate-docs:
name: Generate Docs
runs-on: ubuntu-latest

3
buildSrc/src/main/java/org/springframework/security/CheckExpectedBranchVersionPlugin.java

@ -45,6 +45,9 @@ public class CheckExpectedBranchVersionPlugin implements Plugin<Project> { @@ -45,6 +45,9 @@ public class CheckExpectedBranchVersionPlugin implements Plugin<Project> {
@TaskAction
public void run() throws IOException {
Project project = getProject();
if (project.hasProperty("skipCheckExpectedBranchVersion")) {
return;
}
String version = (String) project.getVersion();
String branchVersion = getBranchVersion(project);
if (!branchVersion.matches("^[0-9]+\\.[0-9]+\\.x$")) {

Loading…
Cancel
Save