mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Cleanup cassandra smoke test removal
See gh-19588
This commit is contained in:
parent
9d60afdbc4
commit
bde7bd0a1a
@ -1,40 +0,0 @@
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "org.springframework:spring-core:5.2.2.RELEASE"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot.conventions"
|
||||
}
|
||||
|
||||
description = "Spring Boot Data Cassandra smoke test"
|
||||
|
||||
dependencies {
|
||||
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-cassandra"))
|
||||
|
||||
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
||||
testImplementation("org.cassandraunit:cassandra-unit-spring:3.5.0.1") {
|
||||
exclude group: "org.slf4j", module: "jcl-over-slf4j"
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
jvmArgumentProviders.add new CassandraPortsProvider()
|
||||
enabled = !JavaVersion.current().java9Compatible
|
||||
}
|
||||
|
||||
class CassandraPortsProvider implements CommandLineArgumentProvider {
|
||||
|
||||
@Override
|
||||
Iterable<String> asArguments() {
|
||||
def ports = org.springframework.util.SocketUtils.findAvailableTcpPorts(2)
|
||||
return [
|
||||
"-Dspring.data.cassandra.port=${ports[0]}",
|
||||
"-Dcassandra.native_transport_port=${ports[0]}",
|
||||
"-Dcassandra.port.storage=${ports[1]}"
|
||||
]
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user