Restore override of Cassandra Java Driver version

Closes gh-209
This commit is contained in:
Andy Wilkinson
2024-03-21 16:00:06 +00:00
parent fdf0445077
commit b0247f73b8
2 changed files with 26 additions and 10 deletions

View File

@@ -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"))

View File

@@ -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"))