[gradle] Automatically add dependency when plugin is applied