Browse Source

Merge remote-tracking branch 'origin/master' into 2.0.x

pull/6/head
Ryan Baxter 7 years ago
parent
commit
ded32cd66a
  1. 23
      spring-cloud-starter-archaius/src/main/java/org/springframework/cloud/starter/archaius/ArchaiusStarterDeprecationWarningAutoConfiguration.java
  2. 3
      spring-cloud-starter-archaius/src/main/resources/META-INF/spring.factories
  3. 22
      spring-cloud-starter-atlas/src/main/java/org/springframework/cloud/starter/atlas/AtlasStarterDeprecationWarningAutoConfiguration.java
  4. 3
      spring-cloud-starter-atlas/src/main/resources/META-INF/spring.factories
  5. 22
      spring-cloud-starter-eureka-server/src/main/java/org/springframework/cloud/starter/eureka/server/EurekaServerStarterDeprecationWarningAutoConfiguration.java
  6. 3
      spring-cloud-starter-eureka-server/src/main/resources/META-INF/spring.factories
  7. 22
      spring-cloud-starter-eureka/src/main/java/org/springframework/cloud/starter/eureka/EurekaStarterDeprecationWarningAutoConfiguration.java
  8. 3
      spring-cloud-starter-eureka/src/main/resources/META-INF/spring.factories
  9. 22
      spring-cloud-starter-feign/src/main/java/org/springframework/cloud/starter/feign/FeignStarterDeprecationWarningAutoConfiguration.java
  10. 3
      spring-cloud-starter-feign/src/resources/META-INF/spring.factories
  11. 22
      spring-cloud-starter-hystrix-dashboard/src/main/java/org/springframework/cloud/starter/hystrix/dashboard/HystrixDashboardDeprecationWarningAutoConfiguration.java
  12. 3
      spring-cloud-starter-hystrix-dashboard/src/resources/META-INF/spring.factories
  13. 22
      spring-cloud-starter-hystrix/src/main/java/org/springframework/cloud/starter/hystrix/HystrixStarterDeprecationWarningAutoConfiguration.java
  14. 3
      spring-cloud-starter-hystrix/src/resources/META-INF/spring.factories
  15. 22
      spring-cloud-starter-ribbon/src/main/java/org/springframework/cloud/starter/ribbon/RibbonDeprecationWarningAutoConfiguration.java
  16. 3
      spring-cloud-starter-ribbon/src/resources/META-INF/spring.factories
  17. 22
      spring-cloud-starter-spectator/src/main/java/org/springframework/cloud/starter/spectator/SpectatorDeprecationWarningAutoConfiguration.java
  18. 3
      spring-cloud-starter-spectator/src/resources/META-INF/spring.factories
  19. 22
      spring-cloud-starter-turbine-amqp/src/main/java/org/springframework/cloud/starter/turbine/amqp/TurbineAmqpDeprecationWarningAutoConfiguration.java
  20. 3
      spring-cloud-starter-turbine-amqp/src/main/resources/META-INF/spring.factories
  21. 22
      spring-cloud-starter-turbine-stream/src/main/java/org/springframework/cloud/starter/turbine/stream/TurbineStreamDeprecationWarningAutoConfiguration.java
  22. 3
      spring-cloud-starter-turbine-stream/src/resources/META-INF/spring.factories
  23. 22
      spring-cloud-starter-turbine/src/main/java/org/springframework/cloud/starter/turbine/TurbineDeprecationWarningAutoConfiguration.java
  24. 3
      spring-cloud-starter-turbine/src/resources/META-INF/spring.factories
  25. 22
      spring-cloud-starter-zuul/src/main/java/org/springframework/cloud/starter/zuul/ZuulDeprecationWarningAutoConfiguration.java
  26. 3
      spring-cloud-starter-zuul/src/resources/META-INF/spring.factories

23
spring-cloud-starter-archaius/src/main/java/org/springframework/cloud/starter/archaius/ArchaiusStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
package org.springframework.cloud.starter.archaius;
/**
* Auto configuration to print deprecation warning about starter.
* @author Ryan Baxter
*/
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
@Configuration
@Deprecated
public class ArchaiusStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(ArchaiusStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-archaius is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-archaius");
}
}

3
spring-cloud-starter-archaius/src/main/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.archaius.ArchaiusStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-atlas/src/main/java/org/springframework/cloud/starter/atlas/AtlasStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.atlas;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print warning about atlas starter deprecation.
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class AtlasStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(AtlasStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-atlas is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-atlas");
}
}

3
spring-cloud-starter-atlas/src/main/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.atlas.AtlasStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-eureka-server/src/main/java/org/springframework/cloud/starter/eureka/server/EurekaServerStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.eureka.server;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning for spring-cloud-starter-eureka-server
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class EurekaServerStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(EurekaServerStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-eureka-server is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-eureka-server");
}
}

3
spring-cloud-starter-eureka-server/src/main/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.eureka.server.EurekaServerStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-eureka/src/main/java/org/springframework/cloud/starter/eureka/EurekaStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.eureka;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print warning message about Eureka starter deprecation
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class EurekaStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(EurekaStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-eureka is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-eureka");
}
}

3
spring-cloud-starter-eureka/src/main/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.eureka.EurekaStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-feign/src/main/java/org/springframework/cloud/starter/feign/FeignStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.feign;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to log warning about deprecation of starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class FeignStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(FeignStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-feign is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-openfeign");
}
}

3
spring-cloud-starter-feign/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
oorg.springframework.cloud.starter.feign.FeignStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-hystrix-dashboard/src/main/java/org/springframework/cloud/starter/hystrix/dashboard/HystrixDashboardDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.hystrix.dashboard;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to log a warning about starter being deprecated
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class HystrixDashboardDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(HystrixDashboardDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-hystrix-dashboard is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-hystrix-dashboard");
}
}

3
spring-cloud-starter-hystrix-dashboard/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.hystrix.dashboard.HystrixDashboardDeprecationWarningAutoConfiguration

22
spring-cloud-starter-hystrix/src/main/java/org/springframework/cloud/starter/hystrix/HystrixStarterDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.hystrix;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration class to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class HystrixStarterDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(HystrixStarterDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-hystrix is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-hystrix");
}
}

3
spring-cloud-starter-hystrix/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.hystrix.HystrixStarterDeprecationWarningAutoConfiguration

22
spring-cloud-starter-ribbon/src/main/java/org/springframework/cloud/starter/ribbon/RibbonDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.ribbon;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class RibbonDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(RibbonDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-ribbon is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-ribbon");
}
}

3
spring-cloud-starter-ribbon/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.ribbon.RibbonDeprecationWarningAutoConfiguration

22
spring-cloud-starter-spectator/src/main/java/org/springframework/cloud/starter/spectator/SpectatorDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.spectator;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class SpectatorDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(SpectatorDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-spectator is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-spectator");
}
}

3
spring-cloud-starter-spectator/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.spectator.SpectatorDeprecationWarningAutoConfiguration

22
spring-cloud-starter-turbine-amqp/src/main/java/org/springframework/cloud/starter/turbine/amqp/TurbineAmqpDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.turbine.amqp;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration class to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class TurbineAmqpDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(TurbineAmqpDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-turbine-amqp is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-turbine-amqp");
}
}

3
spring-cloud-starter-turbine-amqp/src/main/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.amqp.TurbineAmqpDeprecationWarningAutoConfiguration

22
spring-cloud-starter-turbine-stream/src/main/java/org/springframework/cloud/starter/turbine/stream/TurbineStreamDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.turbine.stream;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class TurbineStreamDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(TurbineStreamDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-turbine-stream is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-turbine-stream");
}
}

3
spring-cloud-starter-turbine-stream/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.stream.TurbineStreamDeprecationWarningAutoConfiguration

22
spring-cloud-starter-turbine/src/main/java/org/springframework/cloud/starter/turbine/TurbineDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.turbine;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class TurbineDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(TurbineDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-turbine is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-turbine");
}
}

3
spring-cloud-starter-turbine/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.turbine.TurbineDeprecationWarningAutoConfiguration

22
spring-cloud-starter-zuul/src/main/java/org/springframework/cloud/starter/zuul/ZuulDeprecationWarningAutoConfiguration.java

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
package org.springframework.cloud.starter.zuul;
import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;
/**
* Auto configuration to print deprecation warning for starter
* @author Ryan Baxter
*/
@Configuration
@Deprecated
public class ZuulDeprecationWarningAutoConfiguration {
private static final Log LOGGER = LogFactory.getLog(ZuulDeprecationWarningAutoConfiguration.class);
@PostConstruct
public void logWarning() {
LOGGER.warn("spring-cloud-starter-zuul is deprecated as of Spring Cloud Netflix 1.4.0, " +
"please migrate to spring-cloud-starter-netflix-zuul");
}
}

3
spring-cloud-starter-zuul/src/resources/META-INF/spring.factories

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.starter.zuul.ZuulDeprecationWarningAutoConfiguration
Loading…
Cancel
Save