Add java task: depedency injection.