Coupled thermomechanical response of gradient plasticity