Thursday, October 16, 2014

Reuse repository definitions in gradle

A project I'm working on has accumulated a bunch of repositories we need for the build.gradle script and for the build itself. I don't want to keep everything twice so I thought some re-use is in order. Thanks to the excellent gradle javadocs and api design, it was easy to accomplish. The end result is this:

Wednesday, October 8, 2014

Dump all (most?) JMX Beans via Jolokia using just the shell and a bit of json formatting

It seems jolokia doesn't support dumping everything with just one command.

So here's a really hacky quick and dirty way to get all information jolokia can access:

Once you've gotten this far, piping the information into a file or another tool is trivial.