almond-sh / almond

A Scala kernel for Jupyter
https://almond.sh
BSD 3-Clause "New" or "Revised" License
1.59k stars 239 forks source link

Getting sbt-coursier error when upgrading from sbt version 1.3.13 to 1.9.4 #1253

Closed anishb266 closed 1 year ago

anishb266 commented 1 year ago

I'm moving an enterprise sbt project from sbt 1.3.13 to 1.9.4.

When I'm compiling the project, I'm getting the following error:

[info] Fetching artifacts of
[info] Fetched artifacts of
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts
[error] Caused by: lmcoursier.internal.shaded.coursier.cache.ArtifactError$NotFound: not found: https://repo-url/artifactory/<<some-artifact>>/<<version>>/${artifact.id}-<<version>>.jar

Note: I didn't add any coursier plugin dependency.

plugins.sbt

logLevel := Level.Warn 
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.18" exclude ("org.webjars", "npm")) 
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always

I was not getting this error in sbt 1.3.13 but after moving to 1.9.4, I'm getting this error.

Can anyone tell why I'm getting this error? How to fix this?