57 changed files with 184 additions and 122 deletions
@ -0,0 +1,45 @@
@@ -0,0 +1,45 @@
|
||||
/* |
||||
* 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 Cassandra" |
||||
|
||||
dependencies { |
||||
api(project(":spring-boot-project:spring-boot")) |
||||
api("org.apache.cassandra:java-driver-core") |
||||
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure")) |
||||
|
||||
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")) |
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic") |
||||
} |
||||
2
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationIntegrationTests.java → spring-boot-project/spring-boot-cassandra/src/dockerTest/java/org/springframework/boot/cassandra/autoconfigure/CassandraAutoConfigurationIntegrationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationIntegrationTests.java → spring-boot-project/spring-boot-cassandra/src/dockerTest/java/org/springframework/boot/cassandra/autoconfigure/CassandraAutoConfigurationIntegrationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java → spring-boot-project/spring-boot-cassandra/src/dockerTest/java/org/springframework/boot/cassandra/autoconfigure/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java → spring-boot-project/spring-boot-cassandra/src/dockerTest/java/org/springframework/boot/cassandra/autoconfigure/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cassandra/DriverConfigLoaderBuilderCustomizer.java → spring-boot-project/spring-boot-cassandra/src/main/java/org/springframework/boot/cassandra/autoconfigure/DriverConfigLoaderBuilderCustomizer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cassandra/DriverConfigLoaderBuilderCustomizer.java → spring-boot-project/spring-boot-cassandra/src/main/java/org/springframework/boot/cassandra/autoconfigure/DriverConfigLoaderBuilderCustomizer.java
@ -0,0 +1,68 @@
@@ -0,0 +1,68 @@
|
||||
{ |
||||
"groups": [], |
||||
"properties": [ |
||||
{ |
||||
"name": "spring.cassandra.compression", |
||||
"defaultValue": "none" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.connection.connect-timeout", |
||||
"defaultValue": "5s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.connection.init-query-timeout", |
||||
"defaultValue": "5s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.contact-points", |
||||
"defaultValue": [ |
||||
"127.0.0.1:9042" |
||||
] |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.controlconnection.timeout", |
||||
"defaultValue": "5s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.pool.heartbeat-interval", |
||||
"defaultValue": "30s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.pool.idle-timeout", |
||||
"defaultValue": "5s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.request.page-size", |
||||
"defaultValue": 5000 |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.request.throttler.type", |
||||
"defaultValue": "none" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.request.timeout", |
||||
"defaultValue": "2s" |
||||
}, |
||||
{ |
||||
"name": "spring.cassandra.ssl", |
||||
"type": "java.lang.Boolean", |
||||
"deprecation": { |
||||
"replacement": "spring.cassandra.ssl.enabled", |
||||
"level": "error" |
||||
} |
||||
} |
||||
], |
||||
"hints": [ |
||||
{ |
||||
"name": "spring.cassandra.schema-action", |
||||
"providers": [ |
||||
{ |
||||
"name": "handle-as", |
||||
"parameters": { |
||||
"target": "org.springframework.data.cassandra.config.SchemaAction" |
||||
} |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
org.springframework.boot.cassandra.autoconfigure.CassandraAutoConfiguration |
||||
Loading…
Reference in new issue