migrate to gradle project structure