Solar credit and depreciation

I bought solar for my rental. Am I able to depreciate it as a land improvement AND take the solar credits?