Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
62382371
Commit
62382371
authored
May 28, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'social-auto-configuration'
Closes #941
parents
5807c874
195a3dd8
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
990 additions
and
1 deletion
+990
-1
pom.xml
spring-boot-autoconfigure/pom.xml
+30
-0
FacebookAutoConfiguration.java
.../boot/autoconfigure/social/FacebookAutoConfiguration.java
+97
-0
LinkedInAutoConfiguration.java
.../boot/autoconfigure/social/LinkedInAutoConfiguration.java
+96
-0
SocialWebAutoConfiguration.java
...boot/autoconfigure/social/SocialWebAutoConfiguration.java
+81
-0
TwitterAutoConfiguration.java
...k/boot/autoconfigure/social/TwitterAutoConfiguration.java
+98
-0
spring.factories
...utoconfigure/src/main/resources/META-INF/spring.factories
+4
-0
FacebookAutoConfigurationTests.java
.../autoconfigure/social/FacebookAutoConfigurationTests.java
+64
-0
LinkedInAutoConfigurationTests.java
.../autoconfigure/social/LinkedInAutoConfigurationTests.java
+64
-0
TwitterAutoConfigurationTests.java
...t/autoconfigure/social/TwitterAutoConfigurationTests.java
+64
-0
application.properties
...t-autoconfigure/src/test/resources/application.properties
+7
-1
SpringSocialFacebookCompilerAutoConfiguration.java
...figure/SpringSocialFacebookCompilerAutoConfiguration.java
+54
-0
SpringSocialLinkedInCompilerAutoConfiguration.java
...figure/SpringSocialLinkedInCompilerAutoConfiguration.java
+54
-0
SpringSocialTwitterCompilerAutoConfiguration.java
...nfigure/SpringSocialTwitterCompilerAutoConfiguration.java
+54
-0
org.springframework.boot.cli.compiler.CompilerAutoConfiguration
...ringframework.boot.cli.compiler.CompilerAutoConfiguration
+3
-0
pom.xml
spring-boot-dependencies/pom.xml
+34
-0
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+15
-0
appendix-auto-configuration-classes.adoc
...rc/main/asciidoc/appendix-auto-configuration-classes.adoc
+12
-0
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+9
-0
pom.xml
spring-boot-starters/pom.xml
+3
-0
pom.xml
...boot-starters/spring-boot-starter-social-facebook/pom.xml
+48
-0
spring.provides
...cial-facebook/src/main/resources/META-INF/spring.provides
+1
-0
pom.xml
...boot-starters/spring-boot-starter-social-linkedin/pom.xml
+48
-0
spring.provides
...cial-linkedin/src/main/resources/META-INF/spring.provides
+1
-0
pom.xml
...-boot-starters/spring-boot-starter-social-twitter/pom.xml
+48
-0
spring.provides
...ocial-twitter/src/main/resources/META-INF/spring.provides
+1
-0
No files found.
spring-boot-autoconfigure/pom.xml
View file @
62382371
...
...
@@ -221,6 +221,36 @@
<artifactId>
spring-mobile-device
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-config
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-core
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-web
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-facebook
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-twitter
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-linkedin
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.thymeleaf
</groupId>
<artifactId>
thymeleaf
</artifactId>
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
import
org.springframework.context.EnvironmentAware
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Scope
;
import
org.springframework.context.annotation.ScopedProxyMode
;
import
org.springframework.core.env.Environment
;
import
org.springframework.social.config.annotation.ConnectionFactoryConfigurer
;
import
org.springframework.social.config.annotation.EnableSocial
;
import
org.springframework.social.config.annotation.SocialConfigurerAdapter
;
import
org.springframework.social.connect.Connection
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.web.GenericConnectionStatusView
;
import
org.springframework.social.facebook.api.Facebook
;
import
org.springframework.social.facebook.api.impl.FacebookTemplate
;
import
org.springframework.social.facebook.connect.FacebookConnectionFactory
;
import
org.springframework.web.servlet.View
;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Social connectivity with
* Facebook.
*
* @author Craig Walls
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass
({
FacebookConnectionFactory
.
class
})
@AutoConfigureAfter
(
WebMvcAutoConfiguration
.
class
)
public
class
FacebookAutoConfiguration
{
@Configuration
@EnableSocial
@ConditionalOnWebApplication
protected
static
class
FacebookAutoConfigurationAdapter
extends
SocialConfigurerAdapter
implements
EnvironmentAware
{
private
String
appId
;
private
String
appSecret
;
@Override
public
void
setEnvironment
(
Environment
env
)
{
RelaxedPropertyResolver
propertyResolver
=
new
RelaxedPropertyResolver
(
env
,
"spring.social."
);
this
.
appId
=
propertyResolver
.
getRequiredProperty
(
"facebook.appId"
);
this
.
appSecret
=
propertyResolver
.
getRequiredProperty
(
"facebook.appSecret"
);
}
@Override
public
void
addConnectionFactories
(
ConnectionFactoryConfigurer
config
,
Environment
env
)
{
config
.
addConnectionFactory
(
new
FacebookConnectionFactory
(
this
.
appId
,
this
.
appSecret
));
}
@Bean
@ConditionalOnMissingBean
(
Facebook
.
class
)
@Scope
(
value
=
"request"
,
proxyMode
=
ScopedProxyMode
.
INTERFACES
)
public
Facebook
facebook
(
ConnectionRepository
repository
)
{
Connection
<
Facebook
>
connection
=
repository
.
findPrimaryConnection
(
Facebook
.
class
);
return
connection
!=
null
?
connection
.
getApi
()
:
new
FacebookTemplate
();
}
@Bean
(
name
=
{
"connect/facebookConnect"
,
"connect/facebookConnected"
})
@ConditionalOnExpression
(
"${spring.social.auto_connection_views:false}"
)
public
View
facebookConnectView
()
{
return
new
GenericConnectionStatusView
(
"facebook"
,
"Facebook"
);
}
}
}
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/LinkedInAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
import
org.springframework.context.EnvironmentAware
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Scope
;
import
org.springframework.context.annotation.ScopedProxyMode
;
import
org.springframework.core.env.Environment
;
import
org.springframework.social.config.annotation.ConnectionFactoryConfigurer
;
import
org.springframework.social.config.annotation.EnableSocial
;
import
org.springframework.social.config.annotation.SocialConfigurerAdapter
;
import
org.springframework.social.connect.Connection
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.web.GenericConnectionStatusView
;
import
org.springframework.social.linkedin.api.LinkedIn
;
import
org.springframework.social.linkedin.connect.LinkedInConnectionFactory
;
import
org.springframework.web.servlet.View
;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Social connectivity with
* LinkedIn.
*
* @author Craig Walls
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass
({
LinkedInConnectionFactory
.
class
})
@AutoConfigureAfter
(
WebMvcAutoConfiguration
.
class
)
public
class
LinkedInAutoConfiguration
{
@Configuration
@EnableSocial
@ConditionalOnWebApplication
protected
static
class
LinkedInAutoConfigurationAdapter
extends
SocialConfigurerAdapter
implements
EnvironmentAware
{
private
String
appId
;
private
String
appSecret
;
@Override
public
void
setEnvironment
(
Environment
env
)
{
RelaxedPropertyResolver
propertyResolver
=
new
RelaxedPropertyResolver
(
env
,
"spring.social."
);
this
.
appId
=
propertyResolver
.
getRequiredProperty
(
"linkedin.appId"
);
this
.
appSecret
=
propertyResolver
.
getRequiredProperty
(
"linkedin.appSecret"
);
}
@Override
public
void
addConnectionFactories
(
ConnectionFactoryConfigurer
cfConfig
,
Environment
env
)
{
cfConfig
.
addConnectionFactory
(
new
LinkedInConnectionFactory
(
this
.
appId
,
this
.
appSecret
));
}
@Bean
@ConditionalOnMissingBean
(
LinkedInConnectionFactory
.
class
)
@Scope
(
value
=
"request"
,
proxyMode
=
ScopedProxyMode
.
INTERFACES
)
public
LinkedIn
linkedin
(
ConnectionRepository
repository
)
{
Connection
<
LinkedIn
>
connection
=
repository
.
findPrimaryConnection
(
LinkedIn
.
class
);
return
connection
!=
null
?
connection
.
getApi
()
:
null
;
}
@Bean
(
name
=
{
"connect/linkedinConnect"
,
"connect/linkedinConnected"
})
@ConditionalOnExpression
(
"${spring.social.auto_connection_views:false}"
)
public
View
linkedInConnectView
()
{
return
new
GenericConnectionStatusView
(
"linkedin"
,
"LinkedIn"
);
}
}
}
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/SocialWebAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.social.UserIdSource
;
import
org.springframework.social.config.annotation.EnableSocial
;
import
org.springframework.social.config.annotation.SocialConfigurerAdapter
;
import
org.springframework.social.connect.ConnectionFactoryLocator
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.web.ConnectController
;
import
org.springframework.web.servlet.ViewResolver
;
import
org.springframework.web.servlet.view.BeanNameViewResolver
;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Social's web connection
* support.
*
* @author Craig Walls
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass
({
ConnectController
.
class
})
@AutoConfigureAfter
(
WebMvcAutoConfiguration
.
class
)
public
class
SocialWebAutoConfiguration
{
@Configuration
@EnableSocial
@ConditionalOnWebApplication
protected
static
class
SocialAutoConfigurationAdapter
extends
SocialConfigurerAdapter
{
@Bean
@ConditionalOnMissingBean
(
ConnectController
.
class
)
public
ConnectController
connectController
(
ConnectionFactoryLocator
connectionFactoryLocator
,
ConnectionRepository
connectionRepository
)
{
return
new
ConnectController
(
connectionFactoryLocator
,
connectionRepository
);
}
@Bean
@ConditionalOnMissingBean
(
BeanNameViewResolver
.
class
)
@ConditionalOnExpression
(
"${spring.social.auto_connection_views:false}"
)
public
ViewResolver
beanNameViewResolver
()
{
BeanNameViewResolver
bnvr
=
new
BeanNameViewResolver
();
bnvr
.
setOrder
(
Integer
.
MIN_VALUE
);
return
bnvr
;
}
@Override
public
UserIdSource
getUserIdSource
()
{
return
new
UserIdSource
()
{
@Override
public
String
getUserId
()
{
return
"anonymous"
;
}
};
}
}
}
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/TwitterAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
import
org.springframework.context.EnvironmentAware
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Scope
;
import
org.springframework.context.annotation.ScopedProxyMode
;
import
org.springframework.core.env.Environment
;
import
org.springframework.social.config.annotation.ConnectionFactoryConfigurer
;
import
org.springframework.social.config.annotation.EnableSocial
;
import
org.springframework.social.config.annotation.SocialConfigurerAdapter
;
import
org.springframework.social.connect.Connection
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.web.GenericConnectionStatusView
;
import
org.springframework.social.twitter.api.Twitter
;
import
org.springframework.social.twitter.api.impl.TwitterTemplate
;
import
org.springframework.social.twitter.connect.TwitterConnectionFactory
;
import
org.springframework.web.servlet.View
;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Social connectivity with
* Twitter.
*
* @author Craig Walls
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass
({
TwitterConnectionFactory
.
class
})
@AutoConfigureAfter
(
WebMvcAutoConfiguration
.
class
)
public
class
TwitterAutoConfiguration
{
@Configuration
@EnableSocial
@ConditionalOnWebApplication
protected
static
class
TwitterAutoConfigurationAdapter
extends
SocialConfigurerAdapter
implements
EnvironmentAware
{
private
String
appId
;
private
String
appSecret
;
@Override
public
void
setEnvironment
(
Environment
env
)
{
RelaxedPropertyResolver
propertyResolver
=
new
RelaxedPropertyResolver
(
env
,
"spring.social."
);
this
.
appId
=
propertyResolver
.
getRequiredProperty
(
"twitter.appId"
);
this
.
appSecret
=
propertyResolver
.
getRequiredProperty
(
"twitter.appSecret"
);
}
@Override
public
void
addConnectionFactories
(
ConnectionFactoryConfigurer
cfConfig
,
Environment
env
)
{
cfConfig
.
addConnectionFactory
(
new
TwitterConnectionFactory
(
this
.
appId
,
this
.
appSecret
));
}
@Bean
@ConditionalOnMissingBean
(
TwitterConnectionFactory
.
class
)
@Scope
(
value
=
"request"
,
proxyMode
=
ScopedProxyMode
.
INTERFACES
)
public
Twitter
twitter
(
ConnectionRepository
repository
)
{
Connection
<
Twitter
>
connection
=
repository
.
findPrimaryConnection
(
Twitter
.
class
);
return
connection
!=
null
?
connection
.
getApi
()
:
new
TwitterTemplate
(
this
.
appId
,
this
.
appSecret
);
}
@Bean
(
name
=
{
"connect/twitterConnect"
,
"connect/twitterConnected"
})
@ConditionalOnExpression
(
"${spring.social.auto_connection_views:false}"
)
public
View
twitterConnectView
()
{
return
new
GenericConnectionStatusView
(
"twitter"
,
"Twitter"
);
}
}
}
spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories
View file @
62382371
...
...
@@ -33,6 +33,10 @@ org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration,\
org.springframework.boot.autoconfigure.redis.RedisAutoConfiguration,\
org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration,\
org.springframework.boot.autoconfigure.security.FallbackWebSecurityAutoConfiguration,\
org.springframework.boot.autoconfigure.social.SocialWebAutoConfiguration,\
org.springframework.boot.autoconfigure.social.FacebookAutoConfiguration,\
org.springframework.boot.autoconfigure.social.LinkedInAutoConfiguration,\
org.springframework.boot.autoconfigure.social.TwitterAutoConfiguration,\
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration,\
org.springframework.boot.autoconfigure.velocity.VelocityAutoConfiguration,\
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration,\
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/social/FacebookAutoConfigurationTests.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.social.UserIdSource
;
import
org.springframework.social.connect.ConnectionFactoryLocator
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.UsersConnectionRepository
;
import
org.springframework.social.facebook.api.Facebook
;
import
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
/**
* Tests for {@link FacebookAutoConfiguration}.
*
* @author Craig Walls
*/
public
class
FacebookAutoConfigurationTests
{
private
AnnotationConfigWebApplicationContext
context
;
@After
public
void
close
()
{
if
(
this
.
context
!=
null
)
{
this
.
context
.
close
();
}
}
@Test
public
void
expectedSocialBeansCreated
()
throws
Exception
{
this
.
context
=
new
AnnotationConfigWebApplicationContext
();
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.facebook.appId:12345"
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.facebook.appSecret:secret"
);
this
.
context
.
register
(
SocialWebAutoConfiguration
.
class
);
this
.
context
.
register
(
FacebookAutoConfiguration
.
class
);
this
.
context
.
refresh
();
assertNotNull
(
this
.
context
.
getBean
(
UsersConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionFactoryLocator
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
UserIdSource
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
Facebook
.
class
));
}
}
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/social/LinkedInAutoConfigurationTests.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.social.UserIdSource
;
import
org.springframework.social.connect.ConnectionFactoryLocator
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.UsersConnectionRepository
;
import
org.springframework.social.linkedin.api.LinkedIn
;
import
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
/**
* Tests for {@link LinkedInAutoConfiguration}.
*
* @author Craig Walls
*/
public
class
LinkedInAutoConfigurationTests
{
private
AnnotationConfigWebApplicationContext
context
;
@After
public
void
close
()
{
if
(
this
.
context
!=
null
)
{
this
.
context
.
close
();
}
}
@Test
public
void
expectedSocialBeansCreated
()
throws
Exception
{
this
.
context
=
new
AnnotationConfigWebApplicationContext
();
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.linkedin.appId:12345"
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.linkedin.appSecret:secret"
);
this
.
context
.
register
(
SocialWebAutoConfiguration
.
class
);
this
.
context
.
register
(
LinkedInAutoConfiguration
.
class
);
this
.
context
.
refresh
();
assertNotNull
(
this
.
context
.
getBean
(
UsersConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionFactoryLocator
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
UserIdSource
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
LinkedIn
.
class
));
}
}
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/social/TwitterAutoConfigurationTests.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
social
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.boot.test.EnvironmentTestUtils
;
import
org.springframework.social.UserIdSource
;
import
org.springframework.social.connect.ConnectionFactoryLocator
;
import
org.springframework.social.connect.ConnectionRepository
;
import
org.springframework.social.connect.UsersConnectionRepository
;
import
org.springframework.social.twitter.api.Twitter
;
import
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
/**
* Tests for {@link TwitterAutoConfiguration}.
*
* @author Craig Walls
*/
public
class
TwitterAutoConfigurationTests
{
private
AnnotationConfigWebApplicationContext
context
;
@After
public
void
close
()
{
if
(
this
.
context
!=
null
)
{
this
.
context
.
close
();
}
}
@Test
public
void
expectedSocialBeansCreated
()
throws
Exception
{
this
.
context
=
new
AnnotationConfigWebApplicationContext
();
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.twitter.appId:12345"
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"spring.social.twitter.appSecret:secret"
);
this
.
context
.
register
(
SocialWebAutoConfiguration
.
class
);
this
.
context
.
register
(
TwitterAutoConfiguration
.
class
);
this
.
context
.
refresh
();
assertNotNull
(
this
.
context
.
getBean
(
UsersConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionRepository
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
ConnectionFactoryLocator
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
UserIdSource
.
class
));
assertNotNull
(
this
.
context
.
getBean
(
Twitter
.
class
));
}
}
spring-boot-autoconfigure/src/test/resources/application.properties
View file @
62382371
foo
:
bucket
\ No newline at end of file
foo
:
bucket
spring.social.facebook.appId
=
fbid
spring.social.facebook.appSecret
=
fbsecret
spring.social.twitter.appId
=
twid
spring.social.twitter.appSecret
=
twsecret
spring.social.linkedin.appId
=
liid
spring.social.linkedin.appSecret
=
lisecret
\ No newline at end of file
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringSocialFacebookCompilerAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
cli
.
compiler
.
autoconfigure
;
import
org.codehaus.groovy.ast.ClassNode
;
import
org.codehaus.groovy.control.CompilationFailedException
;
import
org.codehaus.groovy.control.customizers.ImportCustomizer
;
import
org.springframework.boot.cli.compiler.AstUtils
;
import
org.springframework.boot.cli.compiler.CompilerAutoConfiguration
;
import
org.springframework.boot.cli.compiler.DependencyCustomizer
;
/**
* {@link CompilerAutoConfiguration} for Spring Social Facebook.
*
* @author Craig Walls
* @since 1.1.0
*/
public
class
SpringSocialFacebookCompilerAutoConfiguration
extends
CompilerAutoConfiguration
{
@Override
public
boolean
matches
(
ClassNode
classNode
)
{
return
AstUtils
.
hasAtLeastOneFieldOrMethod
(
classNode
,
"Facebook"
);
}
@Override
public
void
applyDependencies
(
DependencyCustomizer
dependencies
)
throws
CompilationFailedException
{
dependencies
.
ifAnyMissingClasses
(
"org.springframework.social.facebook.api.Facebook"
).
add
(
"spring-boot-starter-social-facebook"
);
}
@Override
public
void
applyImports
(
ImportCustomizer
imports
)
throws
CompilationFailedException
{
imports
.
addStarImports
(
"org.springframework.social.facebook.api"
);
imports
.
addStarImports
(
"org.springframework.social.config.annotation"
);
}
}
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringSocialLinkedInCompilerAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
cli
.
compiler
.
autoconfigure
;
import
org.codehaus.groovy.ast.ClassNode
;
import
org.codehaus.groovy.control.CompilationFailedException
;
import
org.codehaus.groovy.control.customizers.ImportCustomizer
;
import
org.springframework.boot.cli.compiler.AstUtils
;
import
org.springframework.boot.cli.compiler.CompilerAutoConfiguration
;
import
org.springframework.boot.cli.compiler.DependencyCustomizer
;
/**
* {@link CompilerAutoConfiguration} for Spring Social LinkedIn.
*
* @author Craig Walls
* @since 1.1.0
*/
public
class
SpringSocialLinkedInCompilerAutoConfiguration
extends
CompilerAutoConfiguration
{
@Override
public
boolean
matches
(
ClassNode
classNode
)
{
return
AstUtils
.
hasAtLeastOneFieldOrMethod
(
classNode
,
"LinkedIn"
);
}
@Override
public
void
applyDependencies
(
DependencyCustomizer
dependencies
)
throws
CompilationFailedException
{
dependencies
.
ifAnyMissingClasses
(
"org.springframework.social.linkedin.api.LinkedIn"
).
add
(
"spring-boot-starter-social-linkedin"
);
}
@Override
public
void
applyImports
(
ImportCustomizer
imports
)
throws
CompilationFailedException
{
imports
.
addStarImports
(
"org.springframework.social.linkedin.api"
);
imports
.
addImports
(
"org.springframework.social.config.annotation.EnableSocial"
);
}
}
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringSocialTwitterCompilerAutoConfiguration.java
0 → 100644
View file @
62382371
/*
* Copyright 2012-2014 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
*
* http://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
.
cli
.
compiler
.
autoconfigure
;
import
org.codehaus.groovy.ast.ClassNode
;
import
org.codehaus.groovy.control.CompilationFailedException
;
import
org.codehaus.groovy.control.customizers.ImportCustomizer
;
import
org.springframework.boot.cli.compiler.AstUtils
;
import
org.springframework.boot.cli.compiler.CompilerAutoConfiguration
;
import
org.springframework.boot.cli.compiler.DependencyCustomizer
;
/**
* {@link CompilerAutoConfiguration} for Spring Social Twitter.
*
* @author Craig Walls
* @since 1.1.0
*/
public
class
SpringSocialTwitterCompilerAutoConfiguration
extends
CompilerAutoConfiguration
{
@Override
public
boolean
matches
(
ClassNode
classNode
)
{
return
AstUtils
.
hasAtLeastOneFieldOrMethod
(
classNode
,
"Twitter"
);
}
@Override
public
void
applyDependencies
(
DependencyCustomizer
dependencies
)
throws
CompilationFailedException
{
dependencies
.
ifAnyMissingClasses
(
"org.springframework.social.twitter.api.Twitter"
)
.
add
(
"spring-boot-starter-social-twitter"
);
}
@Override
public
void
applyImports
(
ImportCustomizer
imports
)
throws
CompilationFailedException
{
imports
.
addStarImports
(
"org.springframework.social.twitter.api"
);
imports
.
addImports
(
"org.springframework.social.config.annotation.EnableSocial"
);
}
}
spring-boot-cli/src/main/resources/META-INF/services/org.springframework.boot.cli.compiler.CompilerAutoConfiguration
View file @
62382371
...
...
@@ -11,5 +11,8 @@ org.springframework.boot.cli.compiler.autoconfigure.TransactionManagementCompile
org.springframework.boot.cli.compiler.autoconfigure.SpringIntegrationCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringSecurityCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringMobileCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringSocialFacebookCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringSocialLinkedInCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringSocialTwitterCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringTestCompilerAutoConfiguration
org.springframework.boot.cli.compiler.autoconfigure.SpringWebsocketCompilerAutoConfiguration
\ No newline at end of file
spring-boot-dependencies/pom.xml
View file @
62382371
...
...
@@ -97,6 +97,10 @@
<spring-integration.version>
4.0.1.RELEASE
</spring-integration.version>
<spring-loaded.version>
1.2.0.RELEASE
</spring-loaded.version>
<spring-mobile.version>
1.1.1.RELEASE
</spring-mobile.version>
<spring-social.version>
1.1.0.RELEASE
</spring-social.version>
<spring-social-facebook.version>
1.1.1.RELEASE
</spring-social-facebook.version>
<spring-social-twitter.version>
1.1.0.RELEASE
</spring-social-twitter.version>
<spring-social-linkedin.version>
1.0.1.RELEASE
</spring-social-linkedin.version>
<spring-security.version>
3.2.4.RELEASE
</spring-security.version>
<spring-security-jwt.version>
1.0.2.RELEASE
</spring-security-jwt.version>
<thymeleaf.version>
2.1.3.RELEASE
</thymeleaf.version>
...
...
@@ -982,6 +986,36 @@
<artifactId>
spring-security-jwt
</artifactId>
<version>
${spring-security-jwt.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-config
</artifactId>
<version>
${spring-social.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-core
</artifactId>
<version>
${spring-social.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-web
</artifactId>
<version>
${spring-social.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-facebook
</artifactId>
<version>
${spring-social-facebook.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-twitter
</artifactId>
<version>
${spring-social-twitter.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-linkedin
</artifactId>
<version>
${spring-social-linkedin.version}
</version>
</dependency>
<dependency>
<groupId>
org.thymeleaf
</groupId>
<artifactId>
thymeleaf
</artifactId>
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
62382371
...
...
@@ -258,6 +258,21 @@ content into your application; rather pick only the properties that you need.
# FILE ENCODING ({sc-spring-boot}/context/FileEncodingApplicationListener.{sc-ext}[FileEncodingApplicationListener])
spring.mandatory-file-encoding=false
# SPRING SOCIAL ({sc-spring-boot-autoconfigure}/social/SocialWebAutoConfiguration.{sc-ext}[SocialWebAutoConfiguration])
spring.social.auto_connection_views=true # Set to true for default connection views or false if you provide your own
# SPRING SOCIAL FACEBOOK ({sc-spring-boot-autoconfigure}/social/FacebookAutoConfiguration.{sc-ext}[FacebookAutoConfiguration])
spring.social.facebook.appId= # your application's Facebook App ID
spring.social.facebook.appSecret= # your application's Facebook App Secret
# SPRING SOCIAL LINKEDIN ({sc-spring-boot-autoconfigure}/social/LinkedInAutoConfiguration.{sc-ext}[LinkedInAutoConfiguration])
spring.social.linkedin.appId= # your application's LinkedIn App ID
spring.social.linkedin.appSecret= # your application's LinkedIn App Secret
# SPRING SOCIAL TWITTER ({sc-spring-boot-autoconfigure}/social/TwitterAutoConfiguration.{sc-ext}[TwitterAutoConfiguration])
spring.social.twitter.appId= # your application's Twitter App ID
spring.social.twitter.appSecret= # your application's Twitter App Secret
# ----------------------------------------
# ACTUATOR PROPERTIES
# ----------------------------------------
...
...
spring-boot-docs/src/main/asciidoc/appendix-auto-configuration-classes.adoc
View file @
62382371
...
...
@@ -38,6 +38,9 @@ The following auto-configuration classes are from the `spring-boot-autoconfigure
|{sc-spring-boot-autoconfigure}/web/EmbeddedServletContainerAutoConfiguration.{sc-ext}[EmbeddedServletContainerAutoConfiguration]
|{dc-spring-boot-autoconfigure}/web/EmbeddedServletContainerAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/social/FacebookAutoConfiguration.{sc-ext}[FacebookAutoConfiguration]
|{dc-spring-boot-autoconfigure}/social/FacebookAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{sc-ext}[FreeMarkerAutoConfiguration]
|{dc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{dc-ext}[javadoc]
...
...
@@ -59,6 +62,9 @@ The following auto-configuration classes are from the `spring-boot-autoconfigure
|{sc-spring-boot-autoconfigure}/data/JpaRepositoriesAutoConfiguration.{sc-ext}[JpaRepositoriesAutoConfiguration]
|{dc-spring-boot-autoconfigure}/data/JpaRepositoriesAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/social/LinkedInAutoConfiguration.{sc-ext}[LinkedInAutoConfiguration]
|{dc-spring-boot-autoconfigure}/social/LinkedInAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/liquibase/LiquibaseAutoConfiguration.{sc-ext}[LiquibaseAutoConfiguration]
|{dc-spring-boot-autoconfigure}/liquibase/LiquibaseAutoConfiguration.{dc-ext}[javadoc]
...
...
@@ -95,6 +101,9 @@ The following auto-configuration classes are from the `spring-boot-autoconfigure
|{sc-spring-boot-autoconfigure}/web/ServerPropertiesAutoConfiguration.{sc-ext}[ServerPropertiesAutoConfiguration]
|{dc-spring-boot-autoconfigure}/web/ServerPropertiesAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/social/SocialWebAutoConfiguration.{sc-ext}[SocialWebAutoConfiguration]
|{dc-spring-boot-autoconfigure}/social/SocialWebAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/solr/SolrAutoConfiguration.{sc-ext}[SolrAutoConfiguration]
|{dc-spring-boot-autoconfigure}/solr/SolrAutoConfiguration.{dc-ext}[javadoc]
...
...
@@ -104,6 +113,9 @@ The following auto-configuration classes are from the `spring-boot-autoconfigure
|{sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[ThymeleafAutoConfiguration]
|{dc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/social/TwitterAutoConfiguration.{sc-ext}[TwitterAutoConfiguration]
|{dc-spring-boot-autoconfigure}/social/TwitterAutoConfiguration.{dc-ext}[javadoc]
|{sc-spring-boot-autoconfigure}/velocity/VelocityAutoConfiguration.{sc-ext}[VelocityAutoConfiguration]
|{dc-spring-boot-autoconfigure}/velocity/VelocityAutoConfiguration.{dc-ext}[javadoc]
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
62382371
...
...
@@ -257,6 +257,15 @@ and Hibernate.
|`spring-boot-starter-security`
|Support for `spring-security`.
|`spring-boot-starter-social-facebook`
|Support for `spring-social-facebook`.
|`spring-boot-starter-social-linkedin`
|Support for `spring-social-linkedin`.
|`spring-boot-starter-social-twitter`
|Support for `spring-social-twitter`.
|`spring-boot-starter-test`
|Support for common test dependencies, including JUnit, Hamcrest and Mockito along with
the `spring-test` module.
...
...
spring-boot-starters/pom.xml
View file @
62382371
...
...
@@ -40,6 +40,9 @@
<module>
spring-boot-starter-parent
</module>
<module>
spring-boot-starter-redis
</module>
<module>
spring-boot-starter-security
</module>
<module>
spring-boot-starter-social-facebook
</module>
<module>
spring-boot-starter-social-twitter
</module>
<module>
spring-boot-starter-social-linkedin
</module>
<module>
spring-boot-starter-remote-shell
</module>
<module>
spring-boot-starter-test
</module>
<module>
spring-boot-starter-thymeleaf
</module>
...
...
spring-boot-starters/spring-boot-starter-social-facebook/pom.xml
0 → 100644
View file @
62382371
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starters
</artifactId>
<version>
1.1.0.BUILD-SNAPSHOT
</version>
</parent>
<artifactId>
spring-boot-starter-social-facebook
</artifactId>
<name>
Spring Boot Social Facebook Starter
</name>
<description>
Spring Boot Social Facebook Starter
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<name>
Pivotal Software, Inc.
</name>
<url>
http://www.spring.io
</url>
</organization>
<properties>
<main.basedir>
${basedir}/../..
</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-config
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-facebook
</artifactId>
</dependency>
</dependencies>
</project>
spring-boot-starters/spring-boot-starter-social-facebook/src/main/resources/META-INF/spring.provides
0 → 100644
View file @
62382371
provides: spring-social-facebook
\ No newline at end of file
spring-boot-starters/spring-boot-starter-social-linkedin/pom.xml
0 → 100644
View file @
62382371
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starters
</artifactId>
<version>
1.1.0.BUILD-SNAPSHOT
</version>
</parent>
<artifactId>
spring-boot-starter-social-linkedin
</artifactId>
<name>
Spring Boot Social LinkedIn Starter
</name>
<description>
Spring Boot Social LinkedIn Starter
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<name>
Pivotal Software, Inc.
</name>
<url>
http://www.spring.io
</url>
</organization>
<properties>
<main.basedir>
${basedir}/../..
</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-config
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-linkedin
</artifactId>
</dependency>
</dependencies>
</project>
spring-boot-starters/spring-boot-starter-social-linkedin/src/main/resources/META-INF/spring.provides
0 → 100644
View file @
62382371
provides: spring-social-linkedin
\ No newline at end of file
spring-boot-starters/spring-boot-starter-social-twitter/pom.xml
0 → 100644
View file @
62382371
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starters
</artifactId>
<version>
1.1.0.BUILD-SNAPSHOT
</version>
</parent>
<artifactId>
spring-boot-starter-social-twitter
</artifactId>
<name>
Spring Boot Social Twitter Starter
</name>
<description>
Spring Boot Social Twitter Starter
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<name>
Pivotal Software, Inc.
</name>
<url>
http://www.spring.io
</url>
</organization>
<properties>
<main.basedir>
${basedir}/../..
</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-config
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.social
</groupId>
<artifactId>
spring-social-twitter
</artifactId>
</dependency>
</dependencies>
</project>
spring-boot-starters/spring-boot-starter-social-twitter/src/main/resources/META-INF/spring.provides
0 → 100644
View file @
62382371
provides: spring-social-twitter
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment