Commit 4cc7fef7 authored by Andy Wilkinson's avatar Andy Wilkinson

Deprecate support for Spring Cloud Connectors in favor of Java CFEnv

Closes gh-17877
parent f52ed4b2
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
package org.springframework.boot.autoconfigure.cloud; package org.springframework.boot.autoconfigure.cloud;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.autoconfigure.AutoConfigureOrder; import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
...@@ -54,4 +57,10 @@ public class CloudServiceConnectorsAutoConfiguration { ...@@ -54,4 +57,10 @@ public class CloudServiceConnectorsAutoConfiguration {
// Cloud configuration needs to happen early (before data, mongo etc.) // Cloud configuration needs to happen early (before data, mongo etc.)
public static final int ORDER = Ordered.HIGHEST_PRECEDENCE + 20; public static final int ORDER = Ordered.HIGHEST_PRECEDENCE + 20;
private static final Log logger = LogFactory.getLog(CloudServiceConnectorsAutoConfiguration.class);
public CloudServiceConnectorsAutoConfiguration() {
logger.warn("Support for Spring Cloud Connectors has been deprecated in favor of Java CFEnv");
}
} }
...@@ -125,8 +125,7 @@ All Cloud Foundry properties are prefixed with `vcap`. ...@@ -125,8 +125,7 @@ All Cloud Foundry properties are prefixed with `vcap`.
You can use `vcap` properties to access application information (such as the public URL of the application) and service information (such as database credentials). You can use `vcap` properties to access application information (such as the public URL of the application) and service information (such as database credentials).
See the {spring-boot-module-api}/cloud/CloudFoundryVcapEnvironmentPostProcessor.html['`CloudFoundryVcapEnvironmentPostProcessor`'] Javadoc for complete details. See the {spring-boot-module-api}/cloud/CloudFoundryVcapEnvironmentPostProcessor.html['`CloudFoundryVcapEnvironmentPostProcessor`'] Javadoc for complete details.
TIP: The https://cloud.spring.io/spring-cloud-connectors/[Spring Cloud Connectors] project is a better fit for tasks such as configuring a DataSource. TIP: The https://github.com/pivotal-cf/java-cfenv/[Java CFEnv] project is a better fit for tasks such as configuring a DataSource.
Spring Boot includes auto-configuration support and a `spring-boot-starter-cloud-connectors` starter.
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<artifactId>spring-boot-starter-cloud-connectors</artifactId> <artifactId>spring-boot-starter-cloud-connectors</artifactId>
<name>Spring Boot Spring Cloud Connectors Starter</name> <name>Spring Boot Spring Cloud Connectors Starter</name>
<description>Starter for using Spring Cloud Connectors which simplifies connecting <description>Starter for using Spring Cloud Connectors which simplifies connecting
to services in cloud platforms like Cloud Foundry and Heroku</description> to services in cloud platforms like Cloud Foundry and Heroku. Deprecated in
favor of Java CFEnv</description>
<properties> <properties>
<main.basedir>${basedir}/../../..</main.basedir> <main.basedir>${basedir}/../../..</main.basedir>
</properties> </properties>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment