This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo{ | |
static String getBar( String self ){ | |
"${self} is foobar." | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'groovy' | |
apply plugin: 'idea' | |
apply plugin: 'eclipse' | |
repositories{ | |
mavenCentral() | |
} | |
dependencies{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
consoleImports(controller: 'console', action: '*') { | |
before = { | |
String importStatements = """ | |
// Groovy Code here | |
// Implicit variables include: | |
// ctx: the Spring application context | |
// grailsApplication: the Grails application | |
// config: the Grails configuration | |
// request: the HTTP request |
NewerOlder