-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathAdminInterfaceGrailsPlugin.groovy
74 lines (55 loc) · 2.47 KB
/
AdminInterfaceGrailsPlugin.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import net.kaleidos.plugins.admin.config.AdminConfigHolder
@groovy.util.logging.Log4j
class AdminInterfaceGrailsPlugin {
def version = "0.7.1"
def grailsVersion = "2.0.0 > *"
def loadAfter = ["springSecurityCore"]
def watchedResources = [
"file:./grails-app/controllers/**/*Controller.groovy",
"file:./grails-app/domain/**/*.groovy",
"file:./grails-app/admin/**/*.groovy",
"file:./grails-app/conf/Config.groovy",
]
def pluginExcludes = [
"grails-app/admin/**",
"grails-app/domain/**"
]
def title = "Grails Admin Interface"
def author = "Kaleidos Open Source"
def authorEmail = "[email protected]"
def description = """
Grails Admin allows you to easily create an administration back-office with default styles and
operations. You cand extend and configure this administrator to improve the experience of your
users.
The default admin also provides an API to ease the integration with already existing
administration back-offices and integration with Spring Security (version 1 and 2) to use the
security behaviour of your application.
This is a similar project to those existing in others MVC frameworks such as Django Admin,
Sonata Admin or Rails Active Admin.
"""
def documentation = "http://kaleidos.github.io/grails-admin-interface"
def license = "APACHE"
def organization = [ name: "Kaleidos Open Source", url: "http://www.kaleidos.net" ]
def developers = [
[ name: "Pablo Alba", email: "[email protected]" ],
[ name: "Antonio de la Torre", email: "[email protected]" ],
[ name: "Daniel Herrero", email: "[email protected]" ],
[ name: "Juan Francisco Alcantara", email: "[email protected]" ],
[ name: "Alonso Torres", email: "[email protected]" ],
[ name: "Sandra Alarcon", email: "[email protected]" ]
]
def issueManagement = [ system: "Github", url: "https://github.com/kaleidos/grails-admin-interface" ]
def scm = [ url: "https://github.com/kaleidos/grails-admin-interface.git" ]
def doWithSpring = {
adminConfigHolder(AdminConfigHolder)
}
def doWithApplicationContext = { ctx ->
ctx.adminConfigHolder.initialize()
}
def onChange = { event->
event.ctx.adminConfigHolder.initialize()
}
def onConfigChange = { event->
event.ctx.adminConfigHolder.initialize()
}
}