How to configure javamelody for grails 2.4.4? Gett

2019-08-12 12:20发布

问题:

As per grails javamelody plugin, I have added dependency of "compile ':grails-melody:1.54.0'"

But I get the error: There was an error loading the BuildConfig: Bad artifact coordinates :grails-melody:1.54.0, expected format is < groupId>:< artifactId>[:< extension>[:< classifier>]]:< version> (Use --stacktrace to see the full trace)

I also tried "compile 'grails-melody:grails-melody:1.54.0'" but got the error: Resolve error obtaining dependencies: Could not find artifact grails-melody:grails-melody:jar:1.54.0

Please suggest a solution.

回答1:

you must add it to the plugins{} block (and not to dependencies{})