diff --git a/.github/workflows/spring-boot-2-matrix.yml b/.github/workflows/spring-boot-2-matrix.yml index 8a723dd994..932bab456f 100644 --- a/.github/workflows/spring-boot-2-matrix.yml +++ b/.github/workflows/spring-boot-2-matrix.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - springboot-version: [ '2.4.13', '2.5.15', '2.6.15', '2.7.0', '2.7.18' ] + springboot-version: [ '2.7.18' ] name: Spring Boot ${{ matrix.springboot-version }} env: @@ -65,10 +65,6 @@ jobs: - name: Update Spring Boot 2.x version run: | springboot_version="${{ matrix.springboot-version }}" - if [[ ! "$springboot_version" =~ ^2\.7\. ]]; then - echo "ORG_GRADLE_PROJECT_excludeGraphql=true" >> "$GITHUB_ENV" - echo "ORG_GRADLE_PROJECT_excludeKafka=true" >> "$GITHUB_ENV" - fi perl -0pi -e 'BEGIN { $v = shift } s/^springboot2[[:space:]]*=[[:space:]]*"\K[^"]*/$v/m or die "::error::springboot2 version entry not found in gradle/libs.versions.toml\n"' "$springboot_version" gradle/libs.versions.toml echo "Updated Spring Boot 2.x version to $springboot_version" diff --git a/.github/workflows/spring-boot-3-matrix.yml b/.github/workflows/spring-boot-3-matrix.yml index 33e06c49b5..00522636a1 100644 --- a/.github/workflows/spring-boot-3-matrix.yml +++ b/.github/workflows/spring-boot-3-matrix.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - springboot-version: [ '3.2.12', '3.3.13', '3.4.13', '3.5.13' ] + springboot-version: [ '3.4.13', '3.5.13' ] name: Spring Boot ${{ matrix.springboot-version }} env: diff --git a/sentry-samples/sentry-samples-spring-boot-opentelemetry-noagent/build.gradle.kts b/sentry-samples/sentry-samples-spring-boot-opentelemetry-noagent/build.gradle.kts index 5ffc83b7f6..59e2b7d04d 100644 --- a/sentry-samples/sentry-samples-spring-boot-opentelemetry-noagent/build.gradle.kts +++ b/sentry-samples/sentry-samples-spring-boot-opentelemetry-noagent/build.gradle.kts @@ -26,17 +26,8 @@ group = "io.sentry.sample.spring-boot" version = "0.0.1-SNAPSHOT" -fun springBoot2SupportsOptionalIntegrations(): Boolean { - val version = libs.versions.springboot2.get().removeSuffix(".RELEASE") - val parts = version.split(".").map { it.toIntOrNull() ?: 0 } - val major = parts.getOrElse(0) { 0 } - val minor = parts.getOrElse(1) { 0 } - return major > 2 || (major == 2 && minor >= 7) -} - -val includeGraphql = - !project.hasProperty("excludeGraphql") && springBoot2SupportsOptionalIntegrations() -val includeKafka = !project.hasProperty("excludeKafka") && springBoot2SupportsOptionalIntegrations() +val includeGraphql = !project.hasProperty("excludeGraphql") +val includeKafka = !project.hasProperty("excludeKafka") tasks.withType().configureEach { kotlin { diff --git a/sentry-samples/sentry-samples-spring-boot-opentelemetry/build.gradle.kts b/sentry-samples/sentry-samples-spring-boot-opentelemetry/build.gradle.kts index 3b7f56523d..e5676a53a7 100644 --- a/sentry-samples/sentry-samples-spring-boot-opentelemetry/build.gradle.kts +++ b/sentry-samples/sentry-samples-spring-boot-opentelemetry/build.gradle.kts @@ -26,17 +26,8 @@ group = "io.sentry.sample.spring-boot" version = "0.0.1-SNAPSHOT" -fun springBoot2SupportsOptionalIntegrations(): Boolean { - val version = libs.versions.springboot2.get().removeSuffix(".RELEASE") - val parts = version.split(".").map { it.toIntOrNull() ?: 0 } - val major = parts.getOrElse(0) { 0 } - val minor = parts.getOrElse(1) { 0 } - return major > 2 || (major == 2 && minor >= 7) -} - -val includeGraphql = - !project.hasProperty("excludeGraphql") && springBoot2SupportsOptionalIntegrations() -val includeKafka = !project.hasProperty("excludeKafka") && springBoot2SupportsOptionalIntegrations() +val includeGraphql = !project.hasProperty("excludeGraphql") +val includeKafka = !project.hasProperty("excludeKafka") tasks.withType().configureEach { kotlin { diff --git a/sentry-samples/sentry-samples-spring-boot-webflux/build.gradle.kts b/sentry-samples/sentry-samples-spring-boot-webflux/build.gradle.kts index fe1859c0df..eb26a16aa9 100644 --- a/sentry-samples/sentry-samples-spring-boot-webflux/build.gradle.kts +++ b/sentry-samples/sentry-samples-spring-boot-webflux/build.gradle.kts @@ -26,15 +26,7 @@ group = "io.sentry.sample.spring-boot" version = "0.0.1-SNAPSHOT" -fun springBoot2SupportsGraphql(): Boolean { - val version = libs.versions.springboot2.get().removeSuffix(".RELEASE") - val parts = version.split(".").map { it.toIntOrNull() ?: 0 } - val major = parts.getOrElse(0) { 0 } - val minor = parts.getOrElse(1) { 0 } - return major > 2 || (major == 2 && minor >= 7) -} - -val includeGraphql = !project.hasProperty("excludeGraphql") && springBoot2SupportsGraphql() +val includeGraphql = !project.hasProperty("excludeGraphql") dependencies { implementation(platform(libs.springboot2.bom)) diff --git a/sentry-samples/sentry-samples-spring-boot/build.gradle.kts b/sentry-samples/sentry-samples-spring-boot/build.gradle.kts index 316e98ebdb..b36e00d5b2 100644 --- a/sentry-samples/sentry-samples-spring-boot/build.gradle.kts +++ b/sentry-samples/sentry-samples-spring-boot/build.gradle.kts @@ -26,17 +26,8 @@ group = "io.sentry.sample.spring-boot" version = "0.0.1-SNAPSHOT" -fun springBoot2SupportsOptionalIntegrations(): Boolean { - val version = libs.versions.springboot2.get().removeSuffix(".RELEASE") - val parts = version.split(".").map { it.toIntOrNull() ?: 0 } - val major = parts.getOrElse(0) { 0 } - val minor = parts.getOrElse(1) { 0 } - return major > 2 || (major == 2 && minor >= 7) -} - -val includeGraphql = - !project.hasProperty("excludeGraphql") && springBoot2SupportsOptionalIntegrations() -val includeKafka = !project.hasProperty("excludeKafka") && springBoot2SupportsOptionalIntegrations() +val includeGraphql = !project.hasProperty("excludeGraphql") +val includeKafka = !project.hasProperty("excludeKafka") tasks.withType().configureEach { kotlin {