From 4be4a76b531f82bc889fac440f125647fe6d47a2 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Tue, 1 Oct 2024 16:30:09 -0600 Subject: [PATCH] Add Snapshot Tests to CI Closes gh-933 --- .github/workflows/continuous-integration-workflow.yml | 11 +++++++++++ dependencies/build.gradle | 11 +++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 8fc126e8..e7986bb2 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=5.3.+ -PspringDataVersion=2021.1.+ --stacktrace deploy-artifacts: name: Deploy Artifacts needs: [ build ] diff --git a/dependencies/build.gradle b/dependencies/build.gradle index b64d2611..a1e6aa0a 100644 --- a/dependencies/build.gradle +++ b/dependencies/build.gradle @@ -14,9 +14,16 @@ repositories { ext.queryDslVersion = '4.0.9' dependencies { - api platform("org.springframework:spring-framework-bom:5.3.21") + 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:5.3.21") + api platform("org.springframework.data:spring-data-bom:2021.1.4") + } api platform("org.junit:junit-bom:5.8.2") - api platform("org.springframework.data:spring-data-bom:2021.1.4") api platform("com.fasterxml.jackson:jackson-bom:2.13.3") constraints { api "com.querydsl:querydsl-core:$queryDslVersion"