purplefox/vert.x — pull request #233 by aurelienmaury (2012-06-21 23:29:14+00:00)
Title: GROOVY "unable to resolve class RouteMatcher"

If you read the basic examples in the Groovy documentation to use the RouteMatcher, no "import" is involved. But if you try to run a minimal verticle with :

def routeMatcher = new RouteMatcher()

that will fail with an ugly :

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/Users/amaury/Desktop/verticle.groovy: 5: unable to resolve class RouteMatcher

That's only solved if you prepend a "import org.vertx.groovy.core.http.RouteMatcher".

Code attached has a freshly added Groovy Compiler configuration to fit documentation promises about RouteMatcher.