Lanefan
Victoria Rules
"Can", not "must"; and the question is whether casting the spell but not using it to attack right away blows your invis. If-when you do attack with it then yes, you're visible.Invisibility states that "The spell ends for [the invisible] target that attacks" and spiritual weapon states "When you cast the spell, you can make a melee spell attack".
Shocking grasp resolves immediately and is gone; if you don't attack with it then and there, what was the point?I don't see how there's any gray area here. The caster is making an attack. End of story. Am I missing something? The caster is making a melee spell attack, no different than the wording for shocking grasp.
Spiritual weapon, at least in the versions I'm used to, goes on for a while.