3

When I try to create the ScalaTest example with this command:

sbt new scala/scalatest-example.g8 fails on TransportException

I get the following:

[info] Set current project to scala (in build file:/Users/chasrmartin/Dropbox/Etudes/Scala/)
[error] org.eclipse.jgit.api.errors.TransportException: git@github.com:scala/scalatest-example.g8.git: Auth fail
[error]     at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
[error]     at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)

I've tried several workarounds from around the next (eg this SO question) to no avail. It would seem this has to be a simple problem, I got this command from a beginners tutorial.

Update

I got this command from https://www.scala-lang.org/documentation/getting-started-sbt-track/testing-scala-with-sbt-on-the-command-line.html

Screenshot

Charlie Martin
  • 110,348
  • 25
  • 193
  • 263

1 Answers1

5

This project doesn't seems to exists anymore. Instead I would prefer to run with the normal scala-seed.g8

> sbt new scala/scala-seed.g8

And add the test classes manually. This is an equivalent tutorial with the same classes and tests.

The scala seed template already comes with the structure you want, with the test dependency. You can run sbt test normally.

inafalcao
  • 1,415
  • 1
  • 11
  • 25