Favor groovy.jar instead of groovy-all.jar

Update CLI application to use groovy.jar rather than groovy-all.jar.
This prevents classloading issues when a user project @Grabs groovy-ant.
This commit is contained in:
Phillip Webb
2013-11-05 09:56:59 -08:00
parent 557f69a449
commit aede0165a0
6 changed files with 115 additions and 47 deletions

View File

@@ -0,0 +1,11 @@
@Grab("org.codehaus.groovy:groovy-ant:2.1.6")
@RestController
class MainController {
@RequestMapping("/")
def home() {
new AntBuilder().echo(message:"Hello world")
[message: "Hello World"]
}
}