Skip to content

Instantly share code, notes, and snippets.

@wololock wololock/dgm.groovy
Last active Aug 27, 2019

What would you like to do?
@Grab(group = "org.reflections", module = "reflections", version = "0.9.11")
@Grab(group = "org.slf4j", module = "slf4j-simple", version = "1.7.25")
import groovy.json.JsonOutput
import org.codehaus.groovy.reflection.GeneratedMetaMethod
import org.reflections.Reflections
def reflections = new Reflections("org.codehaus.groovy.runtime")
def json = reflections.getSubTypesOf(GeneratedMetaMethod).collect {
[name:, allDeclaredConstructors: true, allPublicConstructors: true, allDeclaredMethods: true, allPublicMethods: true]
new File('dgm.json').withWriter {

This comment has been minimized.

Copy link
Owner Author

wololock commented Jan 16, 2019


groovy dgm.groovy > dgm.json

to generate reflection configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.