35 changed files with 375 additions and 362 deletions
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.boot.autoconfigure.data.alt.cassandra; |
||||
|
||||
import org.springframework.boot.autoconfigure.data.cassandra.city.City; |
||||
import org.springframework.data.repository.reactive.ReactiveCrudRepository; |
||||
|
||||
public interface ReactiveCityCassandraRepository extends ReactiveCrudRepository<City, Long> { |
||||
|
||||
} |
||||
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the License); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0 |
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
|
||||
plugins { |
||||
id "java-library" |
||||
id "org.springframework.boot.auto-configuration" |
||||
id "org.springframework.boot.configuration-properties" |
||||
id "org.springframework.boot.deployed" |
||||
id "org.springframework.boot.docker-test" |
||||
id "org.springframework.boot.optional-dependencies" |
||||
} |
||||
|
||||
description = "Spring Boot Data Cassandra" |
||||
|
||||
dependencies { |
||||
api(project(":spring-boot-project:spring-boot-cassandra")) |
||||
api("org.springframework.data:spring-data-cassandra") { |
||||
exclude group: "org.slf4j", module: "jcl-over-slf4j" |
||||
} |
||||
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure")) |
||||
optional("io.projectreactor:reactor-core") |
||||
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-test")) |
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker")) |
||||
dockerTestImplementation("org.junit.jupiter:junit-jupiter") |
||||
dockerTestImplementation("org.testcontainers:cassandra") |
||||
dockerTestImplementation("org.testcontainers:junit-jupiter") |
||||
|
||||
testImplementation(project(":spring-boot-project:spring-boot-test")) |
||||
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) |
||||
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure"))) |
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic") |
||||
} |
||||
4
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfigurationIntegrationTests.java → spring-boot-project/spring-boot-data-cassandra/src/dockerTest/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfigurationIntegrationTests.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfigurationIntegrationTests.java → spring-boot-project/spring-boot-data-cassandra/src/dockerTest/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfigurationIntegrationTests.java
7
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfiguration.java
7
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveDataAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveDataAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveDataAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveDataAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesAutoConfiguration.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesRegistrar.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesRegistrar.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesRegistrar.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesRegistrar.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesAutoConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesAutoConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesAutoConfiguration.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesRegistrar.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesRegistrar.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesRegistrar.java → spring-boot-project/spring-boot-data-cassandra/src/main/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesRegistrar.java
@ -0,0 +1,263 @@
@@ -0,0 +1,263 @@
|
||||
{ |
||||
"groups": [], |
||||
"properties": [ |
||||
{ |
||||
"name": "spring.data.cassandra.compression", |
||||
"defaultValue": "none", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.compression", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.config", |
||||
"type": "org.springframework.core.io.Resource", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.config", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.connection.connect-timeout", |
||||
"defaultValue": "5s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.connection.connect-timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.connection.init-query-timeout", |
||||
"defaultValue": "5s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.connection.init-query-timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.contact-points", |
||||
"defaultValue": [ |
||||
"127.0.0.1:9042" |
||||
], |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.contact-points", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.controlconnection.timeout", |
||||
"defaultValue": "5s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.controlconnection.timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.jmx-enabled", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether to enable JMX reporting. Default to false as Cassandra JMX reporting is not compatible with Dropwizard Metrics.", |
||||
"deprecation": { |
||||
"reason": "Cassandra no longer provides JMX metrics.", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.keyspace-name", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.keyspace-name", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.load-balancing-policy", |
||||
"type": "java.lang.Class", |
||||
"description": "Class name of the load balancing policy. The class must have a default constructor.", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.local-datacenter", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.local-datacenter", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.password", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.password", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.pool.heartbeat-interval", |
||||
"defaultValue": "30s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.pool.heartbeat-interval", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.pool.idle-timeout", |
||||
"defaultValue": "5s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.pool.idle-timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.pool.max-queue-size", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.max-queue-size", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.pool.pool-timeout", |
||||
"type": "java.time.Duration", |
||||
"description": "Pool timeout when trying to acquire a connection from a host's pool.", |
||||
"deprecation": { |
||||
"reason": "No longer available.", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.port", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.port", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.reconnection-policy", |
||||
"type": "java.lang.Class", |
||||
"description": "Class name of the reconnection policy. The class must have a default constructor.", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.repositories.type", |
||||
"type": "org.springframework.boot.autoconfigure.data.RepositoryType", |
||||
"description": "Type of Cassandra repositories to enable.", |
||||
"defaultValue": "auto" |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.consistency", |
||||
"type": "com.datastax.oss.driver.api.core.DefaultConsistencyLevel", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.consistency", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.page-size", |
||||
"defaultValue": 5000, |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.page-size", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.serial-consistency", |
||||
"type": "com.datastax.oss.driver.api.core.DefaultConsistencyLevel", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.serial-consistency", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.throttler.drain-interval", |
||||
"type": "java.time.Duration", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.drain-interval", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.throttler.max-concurrent-requests", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.max-concurrent-requests", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.throttler.max-queue-size", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.max-queue-size", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.throttler.max-requests-per-second", |
||||
"type": "java.lang.Integer", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.max-requests-per-second", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.throttler.type", |
||||
"defaultValue": "none", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.throttler.type", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.request.timeout", |
||||
"defaultValue": "2s", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.request.timeout", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.retry-policy", |
||||
"type": "java.lang.Class", |
||||
"description": "Class name of the retry policy. The class must have a default constructor.", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.schema-action", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.schema-action", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.session-name", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.session-name", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.ssl", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.ssl.enabled", |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.data.cassandra.username", |
||||
"type": "java.lang.String", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.username", |
||||
"level": "error" |
||||
} |
||||
} |
||||
] |
||||
} |
||||
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraDataAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraReactiveDataAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraReactiveRepositoriesAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraRepositoriesAutoConfiguration |
||||
6
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfigurationTests.java
6
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraDataAutoConfigurationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraMockConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraMockConfiguration.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraMockConfiguration.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraMockConfiguration.java
6
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveDataAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveDataAutoConfigurationTests.java
6
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveDataAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveDataAutoConfigurationTests.java
15
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesAutoConfigurationTests.java
15
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraReactiveRepositoriesAutoConfigurationTests.java
15
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesAutoConfigurationTests.java
15
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesAutoConfigurationTests.java → spring-boot-project/spring-boot-data-cassandra/src/test/java/org/springframework/boot/data/cassandra/autoconfigure/CassandraRepositoriesAutoConfigurationTests.java
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
||||
# AutoConfigureDataCassandra auto-configuration imports |
||||
org.springframework.boot.cassandra.autoconfigure.CassandraAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.cassandra.CassandraDataAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.cassandra.CassandraReactiveDataAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.cassandra.CassandraReactiveRepositoriesAutoConfiguration |
||||
org.springframework.boot.autoconfigure.data.cassandra.CassandraRepositoriesAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraDataAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraReactiveDataAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraReactiveRepositoriesAutoConfiguration |
||||
org.springframework.boot.data.cassandra.autoconfigure.CassandraRepositoriesAutoConfiguration |
||||
org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration |
||||
optional:org.springframework.boot.testcontainers.service.connection.ServiceConnectionAutoConfiguration |
||||
|
||||
Loading…
Reference in new issue