sheehan / grails-console

A web-based Groovy console for interactive runtime application management and debugging
Apache License 2.0
78 stars 41 forks source link

Add a package name to `ConsoleUrlMappings` #59

Closed jjchiw closed 7 years ago

jjchiw commented 7 years ago

Hi

I'm trying to get rid off all the WARN messages when grails is booting and I found this one

ERROR --- [           main] g.boot.config.tools.ClassPathScanner     : The application defines a Groovy source using the default package. Please move all Groovy sources into a package.

Then to verify which Groovy sources is using the default package I ran in the Console

ctx.grailsApplication.allClasses.findAll { !it.getPackage() }*.name

And this was the result

['DefaultCacheConfig', 'ConsoleUrlMappings']

So I came here searched for ConsoleUrlMappings and as ClassPathScanner ConsoleUrlMappings is not in a package....

I'm using:

| Grails Version: 3.2.4
| Groovy Version: 2.4.7
| JVM Version: 1.8.0_112
| grails-console Version: 2.0.8

Thanks :)

sheehan commented 7 years ago

fixed in the latest version