ported app_srv build to gradle (app_srv_gradle)