scalafmt download error while using nexus

180 Views Asked by At

I want to use Scalafmt in corporate network ( on a windows machine) using Nexus. I get below error if i run scalafmt

[error] failed to resolve Scalafmt version '2.4.6': X:\ProjectA\.scalafmt.conf
[error] (Compile / scalafmt) failed to resolve Scalafmt version '2.6.4': X:\ProjectA\.scalafmt.conf
[error] Total time: 87 s (01:27), completed 10-Jan-2023 10:56:22

I already have COURSIER_REPOSITORIES environment variable.

  • SBT Version: 1.6.2

  • scalafmt plugin: 2.2.1

  • version in .scalafmt: 2.4.6

Am I missing any resolver or any setting?

1

There are 1 best solutions below

1
On

Please make sure there is scalafmt 2.4.6 in your corporate Nexus. Also there might be scalafmt but of older version.