2

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.

Champ
  • 1,291
  • 4
  • 16
  • 32

1 Answers1

3

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

cfrick
  • 35,203
  • 6
  • 56
  • 68
  • You comment helped me realize I had the opposite issue. I was able to get my maven dependency working by moving it from the plugins block to the dependencies block, Thanks! – Daniel Black Nov 04 '20 at 18:44