fix gradle scripts and add static dir