diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 8fc126e87..eb07c4fb8 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -21,6 +21,17 @@ jobs: java-version: ${{ matrix.jdk }} distribution: temurin secrets: inherit + test: + name: Test Against Snapshots + uses: spring-io/spring-security-release-tools/.github/workflows/test.yml@v1 + strategy: + matrix: + include: + - java-version: 21-ea + - java-version: 17 + with: + java-version: ${{ matrix.java-version }} + test-args: --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=17 -PspringFrameworkVersion=6.2.+ -PspringDataVersion=2024.0.+ --stacktrace deploy-artifacts: name: Deploy Artifacts needs: [ build ] diff --git a/dependencies/build.gradle b/dependencies/build.gradle index 1a0165ed1..e4bda5d7f 100644 --- a/dependencies/build.gradle +++ b/dependencies/build.gradle @@ -14,8 +14,15 @@ repositories { ext.queryDslVersion = '5.0.0' dependencies { - api platform("org.springframework:spring-framework-bom:6.1.13") - api platform("org.springframework.data:spring-data-bom:2021.2.18") + if (project.hasProperty("isOverrideVersionCatalog")) { + def springFrameworkVersion = project.property("springFrameworkVersion") + def springDataVersion = project.property("springDataVersion") + api platform("org.springframework:spring-framework-bom:$springFrameworkVersion") + api platform("org.springframework.data:spring-data-bom:$springDataVersion") + } else { + api platform("org.springframework:spring-framework-bom:6.1.13") + api platform("org.springframework.data:spring-data-bom:2021.2.18") + } api platform('com.fasterxml.jackson:jackson-bom:2.15.4') api platform("org.junit:junit-bom:5.8.2") constraints {