diff --git a/data/data-cassandra-reactive/build.gradle b/data/data-cassandra-reactive/build.gradle index d4caab0b..ce9e826f 100644 --- a/data/data-cassandra-reactive/build.gradle +++ b/data/data-cassandra-reactive/build.gradle @@ -5,15 +5,23 @@ plugins { id "org.graalvm.buildtools.native" } +configurations { + all { + resolutionStrategy { + eachDependency { dependency -> + // See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-GraalVM#cassandra + if (dependency.requested.group == ' com.datastax.oss' && dependency.requested.name == 'java-driver-core') { + details.useVersion '4.17.0' + } + } + } + } +} + dependencies { implementation(enforcedPlatform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation("org.springframework.boot:spring-boot-starter-data-cassandra-reactive") - // See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-GraalVM#cassandra - constraints { - implementation('com.datastax.oss:java-driver-core:4.17.0') - } - testImplementation("org.springframework.boot:spring-boot-starter-test") appTestImplementation(project(":aot-smoke-test-support")) diff --git a/data/data-cassandra/build.gradle b/data/data-cassandra/build.gradle index f0532a89..338d00cc 100644 --- a/data/data-cassandra/build.gradle +++ b/data/data-cassandra/build.gradle @@ -5,15 +5,23 @@ plugins { id "org.graalvm.buildtools.native" } +configurations { + all { + resolutionStrategy { + eachDependency { dependency -> + // See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-GraalVM#cassandra + if (dependency.requested.group == ' com.datastax.oss' && dependency.requested.name == 'java-driver-core') { + details.useVersion '4.17.0' + } + } + } + } +} + dependencies { implementation(enforcedPlatform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) implementation("org.springframework.boot:spring-boot-starter-data-cassandra") - // See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-GraalVM#cassandra - constraints { - implementation('com.datastax.oss:java-driver-core:4.17.0') - } - testImplementation("org.springframework.boot:spring-boot-starter-test") appTestImplementation(project(":aot-smoke-test-support"))