Add scala-library dependency to some sub-projects

Add scala-library dependency to some subprojects to pass the "gradlew idea" command in order to generate IntelliJ Idea project.