WIP: Spring-Upgrade auf 2.2.0
authorKai Moritz <kai@juplo.de>
Tue, 29 Oct 2019 08:03:46 +0000 (09:03 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 29 Oct 2019 16:39:14 +0000 (17:39 +0100)
pom.xml
src/main/java/de/juplo/facebook/errors/FacebookErrorsOAuth2AutoConfiguration.java
src/main/java/de/juplo/facebook/errors/FacebookErrorsSpringSocialAutoConfiguration.java
src/main/java/de/juplo/facebook/errors/OAuth2GraphApiErrorHandler.java

diff --git a/pom.xml b/pom.xml
index e9ad2bd..c5088ff 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
   <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
-    <version>1.3.7.RELEASE</version>
+    <version>2.2.0.RELEASE</version>
   </parent>
 
 
   <url>http://juplo.de/facebook-errors</url>
 
 
-  <prerequisites>
-    <maven>2.0.6</maven>
-  </prerequisites>
-
 
   <licenses>
     <license>
 
     <!-- Spring-Boot-Autoconfiguration -->
     <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-autoconfigure</artifactId>
-      <optional>true</optional>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-webmvc</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.springframework.social</groupId>
-      <artifactId>spring-social-facebook</artifactId>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-autoconfigure</artifactId>
       <optional>true</optional>
     </dependency>
     <dependency>
-      <groupId>org.springframework.security.oauth</groupId>
-      <artifactId>spring-security-oauth2</artifactId>
+      <groupId>org.springframework.security</groupId>
+      <artifactId>spring-security-oauth2-client</artifactId>
       <optional>true</optional>
     </dependency>
 
index 082b0d6..c1647fc 100644 (file)
@@ -7,12 +7,9 @@ import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.config.BeanPostProcessor;
 import org.springframework.boot.autoconfigure.AutoConfigureAfter;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
-import org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration;
-import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
+import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-import org.springframework.security.oauth2.client.OAuth2RestTemplate;
-import org.springframework.security.oauth2.client.http.OAuth2ErrorHandler;
 
 
 /**
index 49a3101..0e542c1 100644 (file)
@@ -12,12 +12,9 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry;
 import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
 import org.springframework.boot.autoconfigure.AutoConfigureAfter;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
-import org.springframework.boot.autoconfigure.social.FacebookAutoConfiguration;
-import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
+import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-import org.springframework.social.facebook.api.Facebook;
-import org.springframework.social.facebook.api.impl.FacebookTemplate;
 import org.springframework.web.client.ResponseErrorHandler;
 import org.springframework.web.client.RestTemplate;
 
index 9158987..e83e47f 100644 (file)
@@ -6,7 +6,7 @@ import java.util.List;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.client.ClientHttpResponse;
 import org.springframework.http.converter.HttpMessageConverter;
-import org.springframework.security.oauth2.client.http.OAuth2ErrorHandler;
+import org.springframework.security.oauth2.client.http.OAuth2ErrorResponseErrorHandler;
 
 
 
@@ -14,12 +14,12 @@ import org.springframework.security.oauth2.client.http.OAuth2ErrorHandler;
  *
  * @author Kai Moritz
  */
-public class OAuth2GraphApiErrorHandler extends OAuth2ErrorHandler
+public class OAuth2GraphApiErrorHandler extends OAuth2ErrorResponseErrorHandler
 {
-  private final OAuth2ErrorHandler parent;
+  private final OAuth2ErrorResponseErrorHandler parent;
 
 
-  public OAuth2GraphApiErrorHandler(OAuth2ErrorHandler handler)
+  public OAuth2GraphApiErrorHandler(OAuth2ErrorResponseErrorHandler handler)
   {
     super(null);
     parent = handler;