Update dependecies and plugins.

Add some type annotation. Scala version update.