Skip to content

Commit

Permalink
Initial release (on codehaus)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.codehaus.org/grails-plugins/grails-class-diagram/trunk@55120 832c1c66-4827-0410-8465-ccb17913cd09
  • Loading branch information
trygvea committed Aug 15, 2009
0 parents commit 68df945
Show file tree
Hide file tree
Showing 71 changed files with 11,617 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ClassDiagramGrailsPlugin.groovy
@@ -0,0 +1,40 @@
class ClassDiagramGrailsPlugin {
// the plugin version
def version = "0.2"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.1.1 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/*.gsp",
"grails-app/domain/**"
]

// TODO Fill in these fields
def author = "Trygve Amundsen"
def authorEmail = ""
def title = "Creates class diagram of Grails domain model"
def description = '''\\
Provides a class diagram of all the domain classes with their properties, methods,
associations and inheritance to other domain classes.
The excellent utility graphviz (http://www.graphviz.org/) is used for diagram layout.
'''

// URL to the plugin's documentation
def documentation = "http://grails.org/ClassDiagram+Plugin"

def doWithSpring = {
// Load default properties from ClassDiagramConfig
GroovyClassLoader classLoader = new GroovyClassLoader(getClass().getClassLoader())
ConfigObject classDiagramConfig = new ConfigSlurper().parse(classLoader.loadClass('ClassDiagramConfig'))

// Allow plugin user to change properties in Config.groovy
classDiagramConfig.merge(application.config)

classDiagram(ClassDiagram) {
config = classDiagramConfig
}
}

}
4 changes: 4 additions & 0 deletions application.properties
@@ -0,0 +1,4 @@
#utf-8
#Sat Aug 15 13:45:39 CEST 2009
app.grails.version=1.1.1
app.name=class-diagram

0 comments on commit 68df945

Please sign in to comment.