forked from neodevelop/grails-spring-social-twitter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSpringSocialTwitterGrailsPlugin.groovy
43 lines (37 loc) · 1.43 KB
/
SpringSocialTwitterGrailsPlugin.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class SpringSocialTwitterGrailsPlugin {
// the plugin version
String version = "0.2.0.BUILD-SNAPSHOT"
// the version or versions of Grails the plugin is designed for
String grailsVersion = "1.3.0 > *"
// the other plugins this plugin depends on
Map dependsOn = [:]
// resources that are excluded from plugin packaging
List pluginExcludes = [
"grails-app/views/error.gsp"
]
String author = "Domingo Suarez Torres"
String authorEmail = "[email protected]"
String title = "Spring Social Twitter"
String description = 'Spring Social Twitter plugin.'
String documentation = "http://grails.org/plugin/spring-social-twitter"
def doWithSpring = {
xmlns context: "http://www.springframework.org/schema/context"
context.'component-scan'('base-package': "grails.plugins.springsocial.config.twitter")
}
def doWithConfig = { config ->
springSocialTwitter {
page.connect = "/springsocial/twitter/connect"
page.connectedHome = "/springSocialTwitter/index"
page.profile = "/springSocialTwitter/index"
page.timeLine = "/springsocial/twitter/timeline"
page.profiles = "/springsocial/twitter/profiles"
page.directMessages = "/springsocial/twitter/messages"
page.trends = "/springsocial/twitter/trends"
page.deniedHome = "/springSocialTwitter/login"
}
def doWithConfigOptions = {
consumerKey(type: String)
consumerSecret(type: String)
}
}
}