# Required metadata sonar.projectKey=java-sonar-runner-simple sonar.projectName=projectnamehere sonar.projectVersion=1.0 # Comma-separated paths to directories with sources (required) sonar.sources=src # Language sonar.language=java # Encoding of the source files sonar.sourceEncoding=UTF-8
And then fire up sonarqube and run the runner... main thing here, though is to leave sufficient time for SQ to fire up and start accepting connections - that's why I stuck that 15 sec sleep in.
sudo killall java; sleep 3; sudo ~/sonarqube-5.0.1/bin/linux-x86-64/sonar.sh start; sleep 15; sudo ~/sonar-runner-2.4/bin/sonar-runner
Aaaaand, because I am on the lowest possible spec AWS box, I have to kill all java processes beforehand, otherwise it'll just heap out.. The outcome of all this will be a set of results on the SQ dashboard.