"Thou hast shed blood abundantly and hast made great wars: thou shalt not build an house unto my name, because thou hast shed much blood upon the earth in my sight."
1 Chr. 22:8
Uriah is probably included in there but it doesn't sound like that is by any means the sole reason.