todokr / zugen

An architecture diagram generator for Scala project.
Eclipse Public License 2.0
77 stars 7 forks source link

sample projects in sbt-test, caused ResolvedException #24

Closed rinotc closed 2 years ago

rinotc commented 2 years ago

Describe the bug

sbt-test 内プロジェクトで指定しているsbt-zugenのversionが見つからないと怒られます。

sys.props.get("plugin.version") match {
  case Some(x) => addSbtPlugin("io.github.todokr" % "sbt-zugen" % x)
  case _       => addSbtPlugin("io.github.todokr" % "sbt-zugen" % "2021.12.0-SNAPSHOT") // <---- 
}

To Reproduce

sbt-test 配下のプロジェクトでsbtを起動する。

Expected behavior

Screenshots

[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]          io.github.todokr:sbt-zugen:2021.12.0-SNAPSHOT (sbtVersion=1.0, scalaVersion=2.12)
[warn] 
[warn]  Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading io.github.todokr:sbt-zugen;sbtVersion=1.0;scalaVersion=2.12:2021.12.0-SNAPSHOT
[error]   Not found
[error]   Not found
[error]   not found: https://repo1.maven.org/maven2/io/github/todokr/sbt-zugen_2.12_1.0/2021.12.0-SNAPSHOT/sbt-zugen-2021.12.0-SNAPSHOT.pom
[error]   not found: /Users/toshinori.chiba/.ivy2/localio.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml
[error]   not found: https://repo.typesafe.com/typesafe/ivy-releases/io.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml
[error]         at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:258)
[error]         at lmcoursier.CoursierDependencyResolution.$anonfun$update$38(CoursierDependencyResolution.scala:227)
[error]         at scala.util.Either$LeftProjection.map(Either.scala:573)
[error]         at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:227)
[error]         at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error]         at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:59)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error]         at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error]         at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error]         at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error]         at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error]         at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error]         at java.base/java.lang.Thread.run(Thread.java:833)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading io.github.todokr:sbt-zugen;sbtVersion=1.0;scalaVersion=2.12:2021.12.0-SNAPSHOT
[error]   Not found
[error]   Not found
[error]   not found: https://repo1.maven.org/maven2/io/github/todokr/sbt-zugen_2.12_1.0/2021.12.0-SNAPSHOT/sbt-zugen-2021.12.0-SNAPSHOT.pom
[error]   not found: /Users/toshinori.chiba/.ivy2/localio.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml
[error]   not found: https://repo.typesafe.com/typesafe/ivy-releases/io.github.todokr/sbt-zugen/scala_2.12/sbt_1.0/2021.12.0-SNAPSHOT/ivys/ivy.xml

Desktop (please complete the following information):

Additional context

rinotc commented 2 years ago

すいません、こちら勘違いでした。 テスト用のプロジェクトなので、ローカルにパブリッシュしてあげればいいだけでしたね。 失礼しましたm( )m