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:
@@ -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"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user