From bde7bd0a1a310f48fb877b9a0d4a05b8d829d6c0 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sun, 9 Feb 2020 08:25:07 +0100 Subject: [PATCH] Cleanup cassandra smoke test removal See gh-19588 --- .../build.gradle | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-cassandra/build.gradle diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-cassandra/build.gradle b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-cassandra/build.gradle deleted file mode 100644 index 28c5d2fa05..0000000000 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-cassandra/build.gradle +++ /dev/null @@ -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 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]}" - ] - } - -} \ No newline at end of file