remove unused imports. add scalacOptions

(cherry picked from commit 1dc3ce30846995a0655195540adc76790a3d87cd)