I had to find the jar file provided by google, which contained the class mentioned in the warning ( Credential class), and paste it into the lib directory used by sbt.
With a really large number of heuristics, it turned out to be the jar file google-oauth-client-1.18.0-rc.jar , which I received here and equally exists here , finding out that the source file for which the error was intended simply does not define this class , but rather imports it from another com.google.api.client.auth.oauth2 package. I assume that the last package should be present at compile time, and its compiled class is necessary so that Scala can use the classes contained in the previous jar, at least when Scala is involved.
Itβs not entirely accurate how the google build system created all this and how to bind the annotations that made the extra jar required for Scala, but the missing class no longer disappears for Scala.
Hope someone calls back to give a deeper answer on how to bind the details of the broken class to Scala and how to track where to get it without my heuristic search.
source share