Set language level to Java 6.
[FIXED JENKINS-24708] Also expose 'detailMessage property in remote API.'

The message property is not used in the tasks plugin, detailMessage contains the actual message.