Move version variables into project.ext
Initialize the resource from main