Closed dpilafian closed 8 years ago
It seems that there is an upgrade plugin doc
For 404 on http://localhost:8080/
A pull request would be great.
doWithWebDescriptor
is not available anymore, so we need to convert it to the Spring Boot way.
I will try to work in this migration on my free time. If I finish it, could I just make a pull request to master or should a branch be created to Grails 3?
I think that a pull request is ok, since I don't plan to maintain two version in parallel.
About the Spring Boot way, you can see an example of javamelody in Spring Boot here: https://github.com/javamelody/javamelody/blob/master/javamelody-for-spring-boot/src/main/java/hello/JavaMelodyConfiguration.java
Thanks for the link, the filter worked! I'm almost done with a first version, just need more tests to confirm that I didn't break any feature.
Found the first difference. In Grails 2.x MonitoringProxy.getSpringCounter().isDisplayed()
returns true
but not in Grails 3.x.
The call to SPRING_COUNTER.isDisplayed() in GrailsMelodyGrailsPlugin.groovy should be changed as part of PR #28, if it is the problem here.
Yep, #28 fixed it.
@dpilafian can you try my snapshot? https://github.com/sergiomichels/grails-melody-plugin
Will that appear in bintray.com? What should we do to install the plugin at grails 3? Help.
Download as zip and do an local install in your maven, then it will be available to you.
thank you, @sergiomichels. I managed to install that. Could you please add that to the official repository.
Also tere s small guide how to install melody.
gradlew.bat install
(C:\Users\_your_username_\.m2\repository\org\grails\plugins)
'runtime 'org.grails.plugins:grails-melody-plugin-master:2.0-SNAPSHOT'
P.s. Dont forget to configure spring sequripy plugin (if installed)
grails.plugin.springsecurity.controllerAnnotations.staticRules = [ [pattern: '/monitoring', access: ['ROLE_ADMIN']] ]
Plugin uploaded to Bintray
Waiting now to see it appears in the official repository (request sent).
It would be helpful to have the JavaMelody Grails Plugin listed at:
I was able to get the plugin to download by adding the dependency to the build file:
build.gradle
However, a 404 results when attempting to open the console:
Environment: