Category Archives: Development

The latest #SonarQube inside #Docker ready to check you #Java #code #quality

Here is my version of Docker container to run SonarQube with set of plugins to enable code quality analysis for Java based projects .

To use it you can pull Docker container:

docker pull webdizz/sonarqube-plugins:latest

There is also a Fig example to run SonarQube that you can check out from my Github repository

#Java version switching on #OS X

If you have to deal with several projects that are based on different versions of Java here is how I’m solving this.

Recently I found out built-in OS X capabilities to switch between different version of Java installed on your system. After some period of time using it I come up with aliases to easily switch between Java versions installed on my machine, here are they:

alias j6='export JAVA_HOME="`/usr/libexec/java_home -v 1.6`"'
alias j7='export JAVA_HOME="`/usr/libexec/java_home -v 1.7`"'
alias j8='export JAVA_HOME="`/usr/libexec/java_home -v 1.8`"'
alias j9='export JAVA_HOME="`/usr/libexec/java_home -v 1.9`"'