update build.gradle to import as library